Tag Info

New answers tagged

0

To ONLY provide the capabilities in the question, add the following to /etc/sudoers: tom ALL=(oracle) /bin/bash Then tom can: sudo -u oracle bash -i


0

The sudo command and managing SELinux requires some additional handling, but typically simply running the command from an interactive root session is easiest: $ sudo -i Password: # setsebool -P httpd_can_sendmail on I think the issue is that you need to specify a role as part of the sudo command: -r role The -r (role) option causes the new ...


0

Depending on what you want to do, it may be sufficient to set an environment variable in an alias for sudo. In my case, I was trying to set a different prompt for when I use sudo -s to get a root shell. The following alias in my .bashrc seems to work perfectly: alias sudo="PS1='\[\e[0;31m\]\u@\h:\w\[\e[0m\]\\$ ' sudo "


0

Seems that in this server the log files were being stored compressed using gzip as default. The log files can be seen using zcat or zless.


0

Your strace contains the following; ... unlinkat(AT_FDCWD, "root.hdd", 0) = -1 EPERM (Operation not permitted) ... write(2, "cannot remove `root.hdd'", 24cannot remove `root.hdd') = 24 ... Since the unlinking failed, it's safe to assume something still has the file open (using the 'root.hdd' name). Since the file contains an OpenVZ filesystem, make ...


0

I hade the same problem, I checked /var/log/auth.log and syslog for errors. Turns out that my LDAP server could not be reached and it slowed down everything. I did not use LDAP based auth anymore, so I removed all "ldap" references from /etc/nsswitch.conf Since then everything works like a charm again.


0

Sudosh may be a better solution. It logs sessions as needed and gives you "VCR" capabilities allowing you to replay sessions, its also available in most major distribution package repositories.



Top 50 recent answers are included