LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-01-2003, 09:18 PM   #1
robmainella
Member
 
Registered: Aug 2003
Posts: 30

Rep: Reputation: 15
root privledges


Is there any way to assign root privledges to a user so the user does not have to the root password whenever they need to change settings
 
Old 09-01-2003, 09:25 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
don't even think about it. That would defeat whole purpose of having root and normal users with lesser privileges. most user specific settings can be changed without root priv.
 
Old 09-01-2003, 09:34 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by quatsch
don't even think about it. That would defeat whole purpose of having root and normal users with lesser privileges. most user specific settings can be changed without root priv.
No, there is a way, its called sudo.

With sudo you can assign certain privileges only root has to a user or even groups, etc without giving out the root password.

Cheers
 
Old 09-01-2003, 09:39 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
yeah, but would you want to allow a normal user access to the config files in /etc, say? seems especially bad for a newbie.
 
Old 09-01-2003, 09:45 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by quatsch
yeah, but would you want to allow a normal user access to the config files in /etc, say? seems especially bad for a newbie.
that's the power of sudo, you set what you want them to have access to. for example, most users don't have the power to shutdown the machine. with sudo, i can give that access to just one user or multiple users if I want, without giving out root's password.

man sudo for more details. but this i believe is what robmainella was asking if possible. just because i give a user access to create a user or add a device doesn't mean they have access directly to the config files in /etc.
 
Old 09-01-2003, 09:47 PM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
I thought that the request was to give *full* root privilleges to a normal user since that's what's needed to avoid ever typing a password to change settings - but maybe I misinterpreted.
 
Old 09-01-2003, 09:59 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
well, (s)he asked if there was a way to change some settings, didn't specify, but to change settings without giving root access. the only way to accomplish this is thru sudo.

i agree giving someone root access without being root is just a bad idea and should never be done.
 
Old 09-01-2003, 10:25 PM   #8
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
http://www.linuxquestions.org/questi...427#post453427
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 09:32 AM
[Redhat] make "admin" account same privledges as "root" Bi0haZarD Linux - Networking 20 01-12-2005 11:47 AM
Scanner to work as USER and not forced as ROOT Root (Suse 9.1) 1kyle Linux - Hardware 0 07-10-2004 09:51 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 05:14 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:36 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