LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to add a super user? (https://www.linuxquestions.org/questions/slackware-14/how-to-add-a-super-user-142469/)

ICO 02-04-2004 10:38 PM

How to add a super user?
 
How to add a super user has all rights and is almost as powerful as root user?
You can use cdrom, shutdown the computer, restart, mount and access windows partition etc.

Thanks for help.

slackMeUp 02-04-2004 10:41 PM

users can do all that... you just need to set up your system to do so.

ICO 02-04-2004 11:14 PM

Can you tell me how to add a user? I only use root now. I don't have other user account.

Thank you.

synaptical 02-04-2004 11:16 PM

Quote:

Originally posted by ICO
Can you tell me how to add a user? I only use root now. I don't have other user account.
bad idea. to make a user, use the useradd command:

useradd <username>

then make a password:

passwd <username>

then log in with that user, and do "su" to gain root privileges when you need to.

At0mic_PC 02-04-2004 11:17 PM

adduser


EDIT: And there is some visudo file that I've been trying to play with so my regular user can shutdown, and mount cdroms and such. No luck yet though.

Kovacs 02-04-2004 11:18 PM

You can also use "adduser" which leads you through a little dialog to add the user.

Edit: snap :)

For regular users to be able to mount cdroms and other partitions, you need to edit /etc/fstab. Not sure about shutting down, but I remember a thread about it not too long ago.

synaptical 02-04-2004 11:23 PM

one of them makes all the /home directories and so on, but i always get it mixed up which is which. :p i think you're right it is adduser, which gives the prompts. :)

ICO 02-04-2004 11:44 PM

Thanks guys.

I wonder why it is a bad idea to use root.:scratch:

synaptical 02-04-2004 11:47 PM

Quote:

Originally posted by ICO
I wonder why it is a bad idea to use root.:scratch:
at least two major reasons:

1. insecure (unsecure? not secure? :p)
2. you can make mistakes and mess up your system

Kovacs 02-04-2004 11:49 PM

Because you have write privileges over the entire file system and one wrong command (rm -fr * :)) can delete a whole bunch of stuff that you need for the OS to run... plus from what I understand it's not good from a security perspective to run processes as root all the time.

Edit: I gotta learn to type faster. :D

ICO 02-04-2004 11:52 PM

i c.:newbie:

ICO 02-04-2004 11:59 PM

synaptical, what font do you use in the console of your screenshot of your sig.

GOBY 02-05-2004 12:07 AM

Quote:

Originally posted by At0mic_PC
adduser


EDIT: And there is some visudo file that I've been trying to play with so my regular user can shutdown, and mount cdroms and such. No luck yet though.

yeh I got around that shutdown thing with this line in /etc/inittab:

#What to do at the "Three Finger Salute"
ca::ctrlaltdel:/sbin/shutdown -h now

gnashley 02-05-2004 02:17 AM

adduser is the Slackware script which gives the prompts for setting up a new user. It uses useradd which is a generic binary. Use adduser.
I've been working on setting up a 3-tiered user system. What I mean is to have root, powerful user and regular users.
visudo is a command to edit the /etc/sudoers file where this can all be setup. there is group called wheel which is apparently meant for this. So adding my own 'user' account to the group 'wheel' lets me give more authority to my own user account while limiting regular users (those in the group 'users') to more normal permissions.

synaptical 02-05-2004 12:59 PM

Quote:

Originally posted by ICO
synaptical, what font do you use in the console of your screenshot of your sig.
9x15

(e.g.: xterm -fn 9x15)


All times are GMT -5. The time now is 03:07 PM.