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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-01-2003, 09:18 PM
|
#1
|
Member
Registered: Aug 2003
Posts: 30
Rep:
|
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
|
|
|
09-01-2003, 09:25 PM
|
#2
|
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661
Rep:
|
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.
|
|
|
09-01-2003, 09:34 PM
|
#3
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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
|
|
|
09-01-2003, 09:39 PM
|
#4
|
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661
Rep:
|
yeah, but would you want to allow a normal user access to the config files in /etc, say? seems especially bad for a newbie.
|
|
|
09-01-2003, 09:45 PM
|
#5
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
09-01-2003, 09:47 PM
|
#6
|
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661
Rep:
|
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.
|
|
|
09-01-2003, 09:59 PM
|
#7
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
09-01-2003, 10:25 PM
|
#8
|
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:
|
|
|
|
All times are GMT -5. The time now is 07:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|