Created
September 30, 2013 16:58
-
-
Save skrobul/6766761 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@c208540c41e2:/var/lib/nagios3# ls -ld /var /var/lib /var/lib/nagios3 /var/lib/nagios3/rw | |
drwxr-xr-x 64 root root 4096 Sep 19 15:48 /var | |
drwxr-xr-x 45 root root 4096 Sep 19 15:48 /var/lib | |
drwxrwxr-x 21 nagios nagios 4096 Sep 30 15:24 /var/lib/nagios3 | |
drwxrwx--- 2 nagios nagios 4096 Sep 30 16:24 /var/lib/nagios3/rw | |
root@c208540c41e2:/var/lib/nagios3# su - www-data -c "/bin/bash" | |
bash: no job control in this shell | |
www-data@c208540c41e2:~$ id | |
uid=33(www-data) gid=33(www-data) groups=33(www-data),104(nagios),1000(nagcmd) | |
# This works well | |
www-data@c208540c41e2:~$ cd /var/lib/nagios3/ | |
# but if I try to go into 'rw', this is what I get | |
www-data@c208540c41e2:/var/lib/nagios3$ cd /var/lib/nagios3/rw/ | |
bash: cd: /var/lib/nagios3/rw/: Permission denied | |
www-data@c208540c41e2:/var/lib/nagios3$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment