1832343 Members
2876 Online
110041 Solutions
New Discussion

Re: uid

 
Jiri D
Advisor

uid

Hi everybody,
I want to enable user xxx run command with uid root,how can I do it?

Thanks

Jirid
6 REPLIES 6
Thierry Poels_1
Honored Contributor

Re: uid

hi,
you have some options:
- tell him the root password (worst option)
- sudo utility which allows users to execute programs as root
- chmod +s which forces the program to be executed as the owner of the program.

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Vincenzo Restuccia
Honored Contributor

Re: uid

Edit a C script with command of root and chmod 4501.
Paula J Frazer-Campbell
Honored Contributor

Re: uid

Hi
Another option is to use restricted sam (sam -r), see man sam.


Paula
If you can spell SysAdmin then you is one - anon
Jiri D
Advisor

Re: uid

Hi Thierry,

What is utility sudo? Where I find it.

Jirid
Thierry Poels_1
Honored Contributor

Re: uid

hi,
for more info of sudo go to:
http://www.courtesan.com/sudo/sudo.html

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Tim D Fulford
Honored Contributor

Re: uid

Hi,

There is one more option, BELOW the entry for root add the user xxx and make the uid 0!!! THIS does have weird effects when resolving who logged in as what. i.e. "who" may give user xxx & root logging in, but "last" will only recognise root. all the files created by xxx will be owned by root, no way 'round this one. It basically comes down to wheter a process is resolving uid to username or username to uid in the password file, as now they will give different answers!

personally speaking, sudo is the best but requires some setting up. This is a quick short term patch!

Tim
-