Re: root user specific commands



v4vijayakumar@xxxxxxxxx wrote:

In Unix, many of the commands are specific to ROOT(admin) User, for
example "useradd" lets say..

Even though, the permissions for others (using chmod) can be changed so
that this particular command be executed from other users, you would
not be able to successfully execute the command..

Ex:

[deepak@nis_server deepak]$ ls -l /usr/sbin/useradd
-rwxr-xr-x 1 root root 52168 Mar 28 2002
/usr/sbin/useradd
[deepak@nis_server deepak]$ useradd hello
useradd: unable to lock password file

Can you perform a single step operation ( from the Admin user login)
such that these commands (let's start with useradd) be able to be
successfully executed from any other user ??

Conceptually - Before you get told how to do it you need to
be qualified to do it. Once you can explain why you're setting
yourself up for trouble, what kind of trouble you'll be getting
yourself into, and how to handle those troubles, then you will
be qualified to actually use the answer.

It's a chicken-and-egg issue. You need to know why it's a
bad idea before you should know how to do it. If all I did was
tell you the names of the commands you could use, it would
be like pulling the pin on a hand grenade and handing it to
you.

So, why do you wish to risk your entire network by doing this
and how do you expect to control those risks? Keeping the
useradd command in specific for root use is the first strategy
to limit the risks.

.



Relevant Pages

  • Re: root user specific commands
    ... commands are executable only by root", and "many commands do things that ... not be able to successfully execute the command.. ... Permission to run the program and permission to perform the operations ... useradd is executable by any user. ...
    (comp.unix.admin)
  • root user specific commands
    ... example "useradd" lets say.. ... the permissions for others (using chmod) can be changed so ... not be able to successfully execute the command.. ... such that these commands be able to be ...
    (comp.unix.admin)
  • system() with 2 commands
    ... Is there a way to perform 2 commands via system? ... a file into a temp file" to confirm it works. ... "useradd" with all the options as the root user. ...
    (comp.lang.perl.misc)
  • Re: root user specific commands
    ... such that these commands (let's start with useradd) be able to be ... Letting Joe User create user accounts isn't ...
    (comp.unix.admin)
  • Re: ok, I got an imac, now what?
    ... about Windows hardware and software in general. ... having trouble and more time needed to fix up the trouble). ... problem would be with keyboard commands. ... that it sounded like the logic board and was quoted $600 to fix it. ...
    (comp.sys.mac.misc)