How to allow users to run root programs in linux

linux_root

Linux is supposed to be the most secure operating system but can you imagine the degree of security when even you (the real user) can’t get access to some specific programs and computer settings.

In Ubuntu i often use command “sudo” to grand access to programs and process controlled by terminal (a default command prompt used in Ubuntu/Linux ).The use of sudo can be defined as follows:

Example #1 for granting acess to install anything on the Ubuntu

sudo apt-get install

Example #1 for restarting the network on the Ubuntu

sudo /etc/init.d/networking restart


Moreover when a user starts a command, it runs with the permissions of that user.Their is another way of playing with this access on linux box with the command suid
How to set mybin suid root ?

chmod +s mybin

Cautions:In case your  command has any security loop hole, or allows the user to access other files or programs in your box then a user could take over the root account and can hijack whole system (linux box).

Honey Singh

Honey is a web evangelist having work experience in Social Technologies, Blogging, Web-Development and UI Designis. Honey commonly blog on Honeytechblog and popularly known as “honeytech”.

You may also like...

11 Responses

  1. Jim Spence says:

    I was searching for Blogs about get your degree 100 and found this site. I am interested in your content and appreciate sites like this.

  2. Do you accept “applications” for official letter writers?

  3. This publish is definitely helpful. I am able to override author’, email’ and url’ default settings, but I’m not able to override comment_field’, it is getting duplicated, i.e. the default textarea is also appearing with my custom comment textarea. Any help would be appreciated.

  4. Minh Benser says:

    Your home is valueble for me. Thanks!

  5. Wow! Thank you! I constantly wanted to write on my site something like that. Can I take a fragment of your post to my site?

  6. With havin so much content and articles do you ever run into any problems of plagorism or copyright violation? My blog has a lot of completely unique content I’ve either created myself or outsourced but it looks like a lot of it is popping it up all over the internet without my agreement. Do you know any techniques to help reduce content from being stolen? I’d truly appreciate it.

  7. Learn More says:

    Excellent post. I was checking constantly this blog and I am impressed! Extremely useful info specially the last part 🙂 I care for such info a lot. I was looking for this particular info for a long time. Thank you and best of luck.|

  8. Thanks, I’ve just been searching for information approximately this topic for a long time and yours is the greatest I’ve discovered till now. However, what in regards to the conclusion? Are you positive in regards to the supply?

  9. Full Article says:

    I am really grateful to the holder of this site who has shared this fantastic piece of writing at at this place.

Leave a Reply