|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Disable switching to root alternatives
Hello!
Do anyone have idea how to block switching to root if user have full sudo? One way is in sudoers file block use of "su", but still it`s possible with sudo -i or sudo -s , sudo bash etc. Other way is create alias on sudoers and permit only specific commands for user. Any ideas? |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
From experience of this situation i would in every case advise to create a command alias for a user to only use sudo for those specific commands and add each command as necessary (obviously dont add commands like su,sh,bash,ksh,visudo,passwd). Much better to have a secure server than give full access to a user and firefight in response to his attempts at gaining root.
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Quote:
If you don't want someone to utilize "full sudo", then just don't give hime "full sudo". If you get into a situation where you have no other choice than to do that you probably have made a serious error in your rights concept long ago. I suggest you reconsider/redo this instead of patching your environment into something which "almost looks like working". If you bake a cake and you have forgotten the backery improver, you probably end up with a thing of the consistency of a stone. To grind this thing down to powder, add water and the forgotten bakery improver and expecting this to bake to a (tasting) cake is similarly doomed to disenthrall your expectancies. The only way is to start over and do it right this time. I hope this helps. bakunin |
|
#4
|
|||
|
|||
|
You cannot prevent root from being root.
If you don't want someone to abuse root, don't give them root. |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
To control sudo you must edit the suders file. You can also control who can use sudo by only letting users in certain groups use sudo. To edit sudo you run this command as root. Code:
visudo You will have to edit the file to give less rights to a user who can use sudo. Commonly in Linux the wheel group has access to sudo. If you don't want them to have sudo, remove them from the wheel group. |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
Hi,
Thanks for answers. Full sudo is for server administrators, but sometimes there are some people who don`t understand what they are doing or just making mistakes. Also other thing is that, root activities are not logged, but sudo activities are logged under /var/log/secure. How to fight against it? |
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Quote:
Quote:
It is an old proverbial truth that root can circumvent absolutely any security mechanism as long as it is server-based. The only thing you can do is to log outside of the area of roots control: on another system, where root is not allowed to become root. See the man page of "syslog" for the possibility to do the logging over the network to a remote system. I hope this helps. bakunin |
| The Following User Says Thank You to bakunin For This Useful Post: | ||
jabalv (01-24-2013) | ||
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to disable root login (Not over SSH)? | pinga123 | UNIX for Dummies Questions & Answers | 2 | 11-26-2010 04:27 AM |
| how to disable su root | islam.said | UNIX for Dummies Questions & Answers | 6 | 02-23-2010 08:11 AM |
| Disable root for AIX 5.2 | james0125 | UNIX for Dummies Questions & Answers | 0 | 10-31-2008 04:05 PM |
| switching between root and a normal user | melanie_pfefer | Shell Programming and Scripting | 3 | 04-21-2007 07:02 AM |
| Disable Root Console login | SmartJuniorUnix | UNIX for Dummies Questions & Answers | 2 | 09-25-2000 01:08 PM |
|
|