Results 1 to 6 of 6
im very new to linux so i got puppy linux, and i dont want to be logged on as root all the time because i heard it was bad. so ...
- 02-17-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 7
Please help! problems with user accounts
im very new to linux so i got puppy linux, and i dont want to be logged on as root all the time because i heard it was bad. so i created another user with the adduser command in rxvt. looked something like this:
adduser -h /root/user -s bin/bash user
user being the new user account i created
and i can log into that account with:
su - user
and it logs in, and displays #, but i thought the # was supposed to change to $ meaning i didnt have all the powers of root. so how do i set up my accounts to have limited access so if im playing around in the command line, it doesnt mess up anything really important? also im pretty new to having to use the command line to do anything, so any help there would be much appriciated as well.
- 02-18-2010 #2
I don't know puppy linux but use 'man adduser' to get the proper commend settings. It looks like you added the new user under /root/ , I'm guessing that is what '-h' does, and that is not where it should be. Normal users are under /home/.
- 02-18-2010 #3
If I'm correct, there are two commands, adduser and useradd, which perform the same task, but one of them presents helpful prompts. Don't know if that's true for Puppy, though.
- 02-18-2010 #4Just Joined!
- Join Date
- Feb 2010
- Posts
- 7
- 02-19-2010 #5Just Joined!
- Join Date
- Sep 2008
- Posts
- 12
useradd -m <username> will create the new directory structure as /home/<username> in puppy, IIRC ( it's been a long time ).
You then need to set a password:
passwd <username>
And you should then be able to log in as your new user...
- 02-19-2010 #6Just Joined!
- Join Date
- Feb 2010
- Posts
- 7
thanks
thanks guys for pushin me in the right direction, i figured it out, i just needed to put -h (which makes the home dir) and put the whole path, ie:
adduser -h /mnt/home/user user
quite simple cant beleive i didnt think of it sooner lol.


Reply With Quote
