LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   adduser help (https://www.linuxquestions.org/questions/linux-general-1/adduser-help-42988/)

qages 01-27-2003 04:40 PM

adduser help
 
hi im logged in as r00t. and i want to add a new user with r00t privliges, how can i do this?

trickykid 01-27-2003 05:01 PM

I would recommend not adding a user with root privileges, you might want to consider setting up sudo.

And its not r00t but root, with two o's no Zero's.

Also to add, your question seems a bit suspicious, would it be so hard to just su as well when needing root privileges. Why would you need a user to have root rights ?

qages 01-27-2003 05:44 PM

so i can install stuff.... its so hard not being able to install stuff from the gui... i want to setup a user with the gui and have r00t rights. when i log in as root, all i get is bash# in command line and i cant run gui programs.

trickykid 01-27-2003 05:52 PM

Well what are you trying to install ? Its not a very good idea to run as root all the time, it only takes one mistake to wipe out your whole system.
But you should be able to startx as root if that's what your looking for to install apps, then set the permissions right so other regular users can install them.

qages 01-27-2003 05:56 PM

i dont know what you mean by that? i at least need wrx access to all folders, becuase maby thats my problem. it wont let me create any thing out my /home dir.

trickykid 01-27-2003 05:58 PM

Well by default a regular user won't have the ability to create dir's outside of their home directory. If you want them to have particular read, write access.. just chmod the directory in question.

Other useful commands to set permissions:

chown
chgrp

You can man them to get more details.

qages 01-27-2003 06:02 PM

i really dont want to give other users that kind of access, but if i could setup a user in / and have wrx to all of it just for that user?

trickykid 01-27-2003 06:16 PM

Clearly you didn't read the man pages for

chgrp
chown

Those are to setup group ownership and ownership. Also creating a group with read/write access to a directory and only adding one particular user would prevent others that aren't associated with that group no read or write access.


All times are GMT -5. The time now is 10:46 AM.