This is a discussion on How to assign administrative right to others under Linux within the Linux software forums, part of the Linux Getting Started category; Under Solaris we use tool named RBAC is used to delegate/assign Administrative Roles. This tool does not exist under Linux ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
| Sponsored Links | ||
|
|
|
||||
|
SUDO is the tool to delegate system administration job to other users without giving the root password. SUDO not just available on Linux but it is runs almost on every other UNIX like operating system.
Use visudo command to modify /etc/sudoers file under Linux. Code:
visudo USERNAME LINUX_HOST=COMMAND OR USERNAME LINUX_HOST=/path/to/command Where, USERNAME: The user (actual name of user) who is delegated or granted to execute the command. LINUX_HOST: Linux computer name (host) i.e. hostname of the system where this rule applies. Host can be hostname, IP address, network address or special aliases. COMMAND OR /path/to/command: Actual command/task granted to user. You must have a full path to ecah command name; further multiple commands need to separated using , (comm). For example /etc/init.d/apache stop, /sbin/shutdown -h now Interesting part, let us say you would like to grant user monk to shutdown system and restart, stop, start apache on www host, then your rule should be as follows: Code:
monk www = /etc/init.d/httpd start, /etc/init.d/httpd stop, /etc/init.d/httpd restart, /sbin/shutdown -h now Code:
sudo /etc/init.d/httpd shutdown Please have a look at sudo, sudoers, visudo man pages. Especially sudoers(5) which document all features and tons of examples. |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hughes Net Modem Assign IP to Server | Don | Getting started tutorials | 1 | 03-25-2008 12:46 AM |
| Duplicity UnboundLocalError: local variable 'local_manifest' referenced before assign | raj | Networking, Firewalls and Security | 1 | 06-09-2007 06:56 PM |
| how do i assign an alias in rcconf with freebsd | All about FreeBSD/OpenBSD/NetBSD | 1 | 01-10-2006 07:21 PM | |