LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-11-2005, 01:04 PM   #1
dumbsheep
Member
 
Registered: Jan 2005
Location: USA
Distribution: Red Hat, CentOS, Fedora, Suse
Posts: 54

Rep: Reputation: 15
Create Profiles with Root Privileges


To All,

Here is my question. How can I give someone Root privileges without having to go into a shell and use the su command. For example, in Windows I can just go into Users in the Control Panel and give who I want Administrator privileges. Is there a way to do this in Linux? More specifically, is there a way to do it in SuSE 9.2 Pro? I want to give my profile total access to the computer, like Root does, but am unable to because I can't find how to give myself root status. I am therefor stuck with logging on as root (which isn't a big problem) but I don't really want to have to. Also, when if I create a new user is there a way to give them root privileges? Any help would be greatly appreciated! Thanks in advance!

-dumbsheep
 
Old 01-11-2005, 01:27 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You REALLY don't want to do that, particularly not for
an account that uses a graphical interface... stick with
su, if you have a few root tasks you need to do often
(and they can't be automated) use sudo ...


Cheers,
Tink
 
Old 01-11-2005, 01:32 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Is there any chance we could just beg you not to want to do this in the first place? normal user accounts are there to stop dumb users doing dumb things. I'd say 75% of the time i'm infront of my Linux machines, I am a very dumb user. I'm and very glad i need to su to do heavy stuff. if there are a few key things you need to do, then try using sudo instead, to allow your otherwise normal user account to access a few extra programs.

Please stop reading now.

If you really want to create an additional account with root-like access, you should find you already have a group on your system called "Wheel". this group is the group that root also belongs to. add your user to this group and lo...
 
Old 01-11-2005, 01:34 PM   #4
dumbsheep
Member
 
Registered: Jan 2005
Location: USA
Distribution: Red Hat, CentOS, Fedora, Suse
Posts: 54

Original Poster
Rep: Reputation: 15
You're right, it probably isn't the best move. But can someone tell me for my knowledge then? So I know how to do it just in case for some reason I ever need to. Thank you again!

-dumbsheep
 
Old 01-11-2005, 01:36 PM   #5
dumbsheep
Member
 
Registered: Jan 2005
Location: USA
Distribution: Red Hat, CentOS, Fedora, Suse
Posts: 54

Original Poster
Rep: Reputation: 15
Great thanks! So what is sudo? I've never heard of it before. What's its purpose? Thanks.

-dumbsheep
 
Old 01-11-2005, 01:43 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by dumbsheep
Great thanks! So what is sudo? I've never heard of it before. What's its purpose? Thanks.

-dumbsheep
man sudo
;}

It will let users specified in /etc/sudoers execute commands
specified in the same file with root's privileges (with or without
entering the users own password) ...

E.g. one could then do
sudo useradd
as if one was root ... the big advantage of this approach is
that you're forced to make a conscious decision, and even
if you accidentally do something silly like
rm -rf *
while you're in / nothing much will happen (except for the
deletion of your home, of course, if you're not quick with a
Ctrl-C) ... that shows that rm is not a command you'd want
in sudoers ;)



Cheers,
Tink
 
Old 01-11-2005, 01:44 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it has a text file which lists what users can use which admin level programs. you've probably already got it installed. check the sudo manpage for details.
 
Old 01-11-2005, 01:46 PM   #8
drisay
Member
 
Registered: Sep 2004
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 30
it's a software you can download. and in it's config file you can give certain users/groups access to certain commands that only root would usually have access to.

http://www.courtesan.com/sudo/

from that site... the definition of sudo is "superuser do"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB HD Needs Root Privileges rrrssssss Linux - Hardware 3 11-13-2005 04:08 PM
How to mount without root privileges? ni0wn Slackware 3 09-15-2004 05:03 PM
How can I create a user with the same privileges as the root ? Menestrel Linux - Newbie 3 11-19-2003 09:38 PM
root privileges and permissions evil_lafta Slackware 7 08-20-2003 09:37 PM
Xine and root privileges markus1982 Linux - Software 1 08-18-2003 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:37 PM.

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