Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Here is what happens:

$ chmod 600 foobar.txt
$ ls -l
total 1
-rwx------ 0 sampablokuper sampablokuper 13 Feb 19 21:00 foobar.txt

Why is the last line not reading as follows?

-rw------- 0 sampablokuper sampablokuper 13 Feb 19 21:00 foobar.txt

N.B. This is occurring on a server of which I am not the sysadmin. The server is running Linux kernel "3.8.0-33-generic" under the following OS:

$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
MCS Linux 2013/2014 (x86_64)
VERSION = 2013
NAME="Ubuntu"
VERSION="12.04.3 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.3 LTS)"
VERSION_ID="12.04"
share|improve this question
    
Can you try chmod 0600 –  Ketan Feb 19 at 21:24
    
@Ketan, same result :( –  sampablokuper Feb 19 at 21:29

1 Answer 1

Turns out, the server was using a file system of type "cifs". This was discovered by running the command df -T.

share|improve this answer
2  
Almost caught that looking at the second field of your ls -l output. –  Ketan Feb 19 at 21:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.