[Samba] strange permission denied problem
- Date: Mon, 31 Mar 2008 20:45:41 -0700
- From: Yan Seiner <yan@xxxxxxxxxx>
- Subject: [Samba] strange permission denied problem
I built an embedded box which uses mount.cifs to mount network shares. I've shipped several of these and all are working fine except for one, which gives me permission denied on certain files:
root@Mnemosyne:~/mnt/bgrp1/c/Ballance Group Folders/Scully/Client Photos-Scully# cat "Office Pics 002.jpg" > /dev/null
cat: Office Pics 002.jpg: Permission deniedroot@Mnemosyne:~/mnt/bgrp1/c/Ballance Group Folders/Scully/Client Photos-Scully# cat "Iron & Concrete Table.jpg" > /dev/null root@Mnemosyne:~/mnt/bgrp1/c/Ballance Group Folders/Scully/Client Photos-Scully#
So only the Office Pics file gets a permission denied.root@Mnemosyne:~/mnt/bgrp1/c/Ballance Group Folders/Scully/Client Photos-Scully# ls -al
dr-xr-x--- 1 root root 0 Mar 28 14:22 . dr-xr-x--- 1 root root 0 Mar 27 17:35 ..-r--r----- 1 root root 113826 Mar 3 16:26 Iron & Concrete Table.jpg
-r--r----- 1 root root 744886 Feb 21 16:14 Nightstands.jpg -r--r----- 1 root root 765452 Feb 15 19:09 Occhio Chair.jpg -r--r----- 1 root root 90670 Mar 28 14:22 Office Pics 002.jpg cat /proc/mounts says://bgrp1/c /tmp/mnt/bgrp1/c cifs ro,mand,nodiratime,unc=\\bgrp1\c,username=root,domain=,rsize=4100,wsize=4100 0 0
and the mount line itself ismount.cifs "//$server/$wshare" /tmp/mnt/$server/$lshare -o ip=$target,guest,ro,file_mode=0440,dir_mode=0550
I can't for the life of me figure out why some files give me a permission denied. I have no physical access to the problem box; here's what I know:
------------------------------------------+ Looking up status of 192.168.0.2 BGRP1 <00> - B <ACTIVE> MSHOME <00> - <GROUP> B <ACTIVE> BGRP1 <20> - B <ACTIVE> MSHOME <1e> - <GROUP> B <ACTIVE> MSHOME <1d> - B <ACTIVE> ..__MSBROWSE__. <01> - <GROUP> B <ACTIVE> MAC Address = 00-19-DB-A6-43-23 ------------------------------------------+ Sharename Type Comment --------- ---- ------- IPC$ IPC Remote IPC D$ Disk Default shareC Disk Ballance Group Folders Disk F Disk ADMIN$ Disk Remote Admin
C$ Disk Default share Server Comment --------- ------- Workgroup Master How do I go about diagnosing this? Thanks, --Yan -- o__ ,>/'_ o__ (_)\(_) ,>/'_ o__ Yan Seiner (_)\(_) ,>/'_ o__ Certified Personal Trainer (_)\(_) ,>/'_ o__ Licensed Professional Engineer (_)\(_) ,>/'_ Who says engineers have to be pencil necked geeks? (_)\(_) Help out my kids' school: http://www.seiner.com/blog/Travels/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
- Follow-Ups:
- Re: [Samba] strange permission denied problem
- From: Scott Lovenberg
- Re: [Samba] strange permission denied problem
- Prev by Date: Re: [Samba] Force User based on directory name
- Next by Date: [Samba] strange behaviour
- Previous by thread: [Samba] LDAP different Group SID -- not supported for NETLOGON calls
- Next by thread: Re: [Samba] strange permission denied problem
- Index(es):