Am i right understand - if we set chmod 666 on file, any user can access it?
from root it accessible ok. BUT
[cmd=]sudo -u otheruser cat /etc/mail/aliases[/cmd]
gives access denied.
If I login with otheruser
then
BUT at the same time! from root
Why it's differ? how can I enable this folder and file. and why chmod can't do anything?
help)
Code:
[root@server /etc/mail]# ls -alh aliases*
-rw-r--r-- 1 root wheel 24K Nov 19 14:04 aliases
-rw-rw-rw- 1 root wheel 48K Nov 18 13:16 aliases.db
from root it accessible ok. BUT
[cmd=]sudo -u otheruser cat /etc/mail/aliases[/cmd]
gives access denied.
If I login with otheruser
Code:
[otheruser@server /] cd /etc/
-bash: cd: /etc/: Permission denied
Code:
[otheruser@server ~]$ ls -al | grep etc
drwxr-x--x 2 1000 1002 3584 Oct 22 13:12 etc
Code:
[root@server /]# ls -al | grep etc
drw-r--r-- 36 root wheel 1024 Nov 19 14:17 etc
help)