LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-04-2004, 10:38 PM   #1
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Rep: Reputation: 30
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.
 
Old 02-04-2004, 10:41 PM   #2
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
users can do all that... you just need to set up your system to do so.
 
Old 02-04-2004, 11:14 PM   #3
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Original Poster
Rep: Reputation: 30
Can you tell me how to add a user? I only use root now. I don't have other user account.

Thank you.
 
Old 02-04-2004, 11:16 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
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.
 
Old 02-04-2004, 11:17 PM   #5
At0mic_PC
Member
 
Registered: Jul 2003
Location: Mississippi
Distribution: Slack9.1
Posts: 159

Rep: Reputation: 30
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.

Last edited by At0mic_PC; 02-04-2004 at 11:19 PM.
 
Old 02-04-2004, 11:18 PM   #6
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
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.

Last edited by Kovacs; 02-04-2004 at 11:19 PM.
 
Old 02-04-2004, 11:23 PM   #7
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
one of them makes all the /home directories and so on, but i always get it mixed up which is which. i think you're right it is adduser, which gives the prompts.
 
Old 02-04-2004, 11:44 PM   #8
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Original Poster
Rep: Reputation: 30
Thanks guys.

I wonder why it is a bad idea to use root.
 
Old 02-04-2004, 11:47 PM   #9
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

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

1. insecure (unsecure? not secure? )
2. you can make mistakes and mess up your system
 
Old 02-04-2004, 11:49 PM   #10
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
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.
 
Old 02-04-2004, 11:52 PM   #11
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Original Poster
Rep: Reputation: 30
i c.
 
Old 02-04-2004, 11:59 PM   #12
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Original Poster
Rep: Reputation: 30
synaptical, what font do you use in the console of your screenshot of your sig.
 
Old 02-05-2004, 12:07 AM   #13
GOBY
Member
 
Registered: Feb 2003
Location: Austin TX
Distribution: ArchLinux
Posts: 67

Rep: Reputation: 15
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
 
Old 02-05-2004, 02:17 AM   #14
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
Old 02-05-2004, 12:59 PM   #15
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
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)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running super user commands as normal user mickyg Linux - Security 5 10-14-2005 07:25 PM
How to use the "super" to add user from web? beelzebub888 Linux - Security 5 12-28-2002 11:06 AM
How to use the "super" to add user from web? beelzebub888 Programming 1 12-27-2002 04:20 AM
Super User boyinfrance Linux - Newbie 1 06-17-2002 12:07 PM
normal user = super user jayakrishnan Linux - General 4 03-19-2002 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration