Solved

asroot for linux

Posted on 2004-03-29
2
475 Views
Last Modified: 2012-06-21
Is there something like the asroot command (SCO Unix RIP) for linux suse or redhat ? I want a user to be able to run the chmod command on files, (he's a trusted user).

Thanks
0
Comment
Question by:henry007
2 Comments
 
LVL 9

Accepted Solution

by:
Alf666 earned 125 total points
ID: 10707865
Yep. sudo.

man sudo

config in /etc/sudoers

But at the second when you allow chmod, you'd better simply give him a root account.

cp /bin/sh /tmp
sudo chmod 1755 /tmp/sh
/tmp/sh

And BAM! You get a root shell :-)

0
 

Author Comment

by:henry007
ID: 10708177
:-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now