Solved

asroot for linux

Posted on 2004-03-29
2
480 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using sort and uniq to pare down large syslog 6 76
php56-php-mcrypt for rhel7 php56 1 111
Is Fedora an appropriate distro for the environment. 7 92
RPM creation 6 23
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

733 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