[Samba] can ls files, but can't cat files

Adam Williams awilliam at mdah.state.ms.us
Thu Aug 10 15:15:34 GMT 2006


I have a server roark (fedora core 5 with samba 3.0.23a-1.fc4.1) with a 
home directory awilliam.  I'm trying to mount it on my linux workstation 
(fedora core 5, samba 3.0.23a-1.fc5.1).  On my workstation I do:

mount -t cifs "//roark/awilliam" /mnt/roark-awilliam/ -o 
username=awilliam,password=xxxxxx

and when I cd to /mnt/roark-awilliam, ls works, but if I cat a file I 
get the error:

[root at awilliam ~]# cd /mnt/roark-awilliam/
[root at awilliam roark-awilliam]# cat 2005statelistings.txt
cat: 2005statelistings.txt: Permission denied

[root at awilliam roark-awilliam]# ls -l 2005statelistings.txt
-rwxr--r-- 1 511 513 4073 Oct 26  2005 2005statelistings.txt

if i ssh to roark, i can cat ~awilliam/2005statelistings.txt. and perms 
on it are:

[root at roark ~]# ls -l ~awilliam/2005statelistings.txt
-rwxr--r--  1 awilliam awilliam 4073 Oct 26  2005 
/home/awilliam/2005statelistings.txt

[root at roark ~]# cat ~awilliam/2005statelistings.txt
Adam, Williams, ###-####

roark's smb.conf relevant part is:

[homes]
        comment = Home Directories
        writeable = Yes
        browseable = No
        hide dot files = yes
        public = no
        valid users = %S

I don't see any obvious problems, any help?





More information about the samba mailing list