[Bug 1157773] use unshare to become root
http://bugzilla.opensuse.org/show_bug.cgi?id=1157773 http://bugzilla.opensuse.org/show_bug.cgi?id=1157773#c1 Neil Rickert <nwr10cst-oslnx@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nwr10cst-oslnx@yahoo.com --- Comment #1 from Neil Rickert <nwr10cst-oslnx@yahoo.com> --- It is not as simple as it looks. # id uid=0(root) gid=0(root) groups=0(root),65534(nobody) Yes, it looks as if I am root. But: root@nwr2 # ls /root ls: cannot open directory '/root': Permission denied root@nwr2 # less /etc/shadow /etc/shadow: Permission denied Another test: root@nwr2 # ls /tmp/foo ls: cannot access '/tmp/foo': No such file or directory root@nwr2 # touch /tmp/foo root@nwr2 # ls -l /tmp/foo -rw-rw-r-- 1 root root 0 Nov 26 09:58 /tmp/foo But, if I examine that file from another terminal: 23% ls -l /tmp/foo -rw-rw-r-- 1 rickert rickert 0 Nov 26 09:58 /tmp/foo It looks as if "unshare -r -n bash" makes me a fake root. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com