Menu
  • HOME
  • TAGS

Is the PAM stack always run as root?

c,linux,pam,setuid

Not always, no. Most applications using pam are marked setuid, or have setuid helpers -- as many standard plugins do require root -- but one can use the library without root privileges or an escalation method if no plugins being invoked need privileges. Some examples: Standard authentication with /etc/shadow does...

Oracle Enterprise Manager Error - NMO setuid (root)

oracle,setuid

Check if the filesystem that $ORACLE_HOME is in, is mounted with the nosuid option. If it is, that will prevent any executable running as root, even if SUID bit is set. Hope that helps....

UnsatisfiedLinkError when running Jetty9's setUID feature

java,jetty,unsatisfiedlinkerror,jetty-9,setuid

Exploring the libsetuid file (nm -D /path/to/the/so), I realized that the so I was using was outdated and was not compatible with Jetty 9, the functions were named as mortbay: [email protected]:~/# nm -D libsetuid.so --size-sort | less 0000000000000010 T Java_org_mortbay_setuid_SetUID_setgid 0000000000000010 T Java_org_mortbay_setuid_SetUID_setuid 0000000000000015 T Java_org_mortbay_setuid_SetUID_setumask 0000000000000018 T throwNewJavaSecurityException 0000000000000058...

setuid(0) fails to execute for root owned program

c,linux,shell,root,setuid

No problem with your code, just check correct setuid / 'sgid' sequence: sudo chmod 6775 setuid sudo chown root:root setuid You must set at least SUID, SGID and execution permissions (6555 mask). Also it's common for this case to set user/group write (6775 mask). Of course for security you can...

Default user for files and directories created in bash under sudo

osx,bash,permissions,sudo,setuid

Use cp -p option to preserve file attributes. Note this will preserve user, group permissions and the modification and access times of the files....