Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Script can be messed up if username is part of other usernames? #134

Open
g30h opened this issue Dec 1, 2015 · 0 comments
Open

Script can be messed up if username is part of other usernames? #134

g30h opened this issue Dec 1, 2015 · 0 comments

Comments

@g30h
Copy link

g30h commented Dec 1, 2015

Hi there, thanks for your AWESOME script it has saved me hours of reading and complicated setup.

But I noticed something possibly a bit wrong.

I think the grep which finds the system user also finds users where the sys user is a component of the other users, it may not just be the grep but something is off for sure.

EG: I made a user 't' and it really messed with the script.
I included the output below.
Plus I don't think things were setup correctly, I couldn't find the config files etc etc.

So basically i made another user with a unique name and it worked perfectly, but I think this is a bug none-the-less.

Script: Output when I chose system user as 't':

Installation is complete.

Your downloads folder is in /root
/var/list
/nonexistent
/home/matt
/staging
/nonexistent
/home/t/Downloads
Sessions data is /root
/var/list
/nonexistent
/home/matt
/staging
/nonexistent
/home/t/.rtorrent-session
rtorrent's configuration file is /root
/var/list
/nonexistent
/home/matt
/staging
/nonexistent
/home/t/.rtorrent.rc

If you want to change settings for rtorrent, such as download folder, etc.,
you need to edit the '.rtorrent.rc' file. E.g. 'nano /root
/var/list
/nonexistent
/home/matt
/staging
/nonexistent
/home/t/.rtorrent.rc'

I should add the output from a working unique user:

Installation is complete.

Your downloads folder is in /home/unique/Downloads
Sessions data is /home/unique/.rtorrent-session
rtorrent's configuration file is /home/unique/.rtorrent.rc

If you want to change settings for rtorrent, such as download folder, etc.,
you need to edit the '.rtorrent.rc' file. E.g. 'nano /home/unique/.rtorrent.rc'

So, thanks again for the wonderful work, I am up and running it all happily now thanks to you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant