Solved

asroot for linux

Posted on 2004-03-29
2
474 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
Comment Utility
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
Comment Utility
:-)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 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

10 Experts available now in Live!

Get 1:1 Help Now