[Samba] Bash question about find out all accessible shares on Samba server

2012-12-17 Thread J Gao
Hello, I am working on a bash script to help user mount Samba share on his/her local Linux (Ubuntu) system. Now I can list all the Samba shares by command: #smbclient -N -gL \\sambaserver 2>&1 | grep -e "Disk|" | cut -d'|' -f2 The problem is we have too many shares on the server so this come

Re: [Samba] Help pls. -- Samba permission question

2012-12-12 Thread J Gao
On 12-12-12 03:02 PM, Gary Dale wrote: On 12/12/12 05:18 PM, J Gao wrote: On 12-12-12 12:52 PM, Gary Dale wrote: On 12/12/12 02:07 PM, J Gao wrote: Thank you Gary for the help. On 12-12-12 09:45 AM, Gary Dale wrote: If you want the CIFS permissions to be set correctly, use the Samba/CIFS

Re: [Samba] Help pls. -- Samba permission question

2012-12-12 Thread J Gao
On 12-12-12 12:52 PM, Gary Dale wrote: On 12/12/12 02:07 PM, J Gao wrote: Thank you Gary for the help. On 12-12-12 09:45 AM, Gary Dale wrote: If you want the CIFS permissions to be set correctly, use the Samba/CIFS tools to set them (ie. set them from the client. Don't set them using

Re: [Samba] Help pls. -- Samba permission question

2012-12-12 Thread J Gao
rds. Gao The last line in your server commands I believe should be chmod, not chowm. On 12/12/12 12:21 PM, J Gao wrote: Hi, All, I'm having a problem with my samba server(v3.6.9) setup. I have a share on the server: #cd / #mkdir managment #chown -R root:managegroup management #chowm -R

[Samba] Help pls. -- Samba permission question

2012-12-12 Thread J Gao
Hi, All, I'm having a problem with my samba server(v3.6.9) setup. I have a share on the server: #cd / #mkdir managment #chown -R root:managegroup management #chowm -R 2770 management When I test this I found out: the managegroup member can create new file/dir with the correct permission: -rw

[Samba] Really confused on Samba and ACL

2012-11-28 Thread J Gao
Hello, I am trying to build a Samba standalone server to serve file sharing in our office for both Ubuntu and Windows clients. Ubuntu user will use mount.cifs to mount the share. Windows (XP/7) will use workgroup to access the share. I am using Samba 3.6.9 on CentOS 6.3 (64bit). Now I am ha

Re: [Samba] Permission for copied file/dir

2012-07-06 Thread J Gao
On 12-07-04 04:30 PM, J Gao wrote: Hello, everyone, My server is Samba 3.5 on Centos 6.2. It is a stand alone file server and now I have trouble to set the correct permission. My goal is to set 0770 on all the share, including files and directories. here is my smb.conf: [global

[Samba] Question about the permission for copied file/dir

2012-07-04 Thread J Gao
file permission is 0744, it will keep this permission when it copied to the Samba share. Same for the directories. I tried the "force security mode = 0770" and "security mask = 0770" but without success. Could someone help me please? Thanks a lot. J Gao -- -- To u

[Samba] Permission for copied file/dir

2012-07-04 Thread J Gao
file permission is 0744, it will keep this permission when it copied to the Samba share. Same for the directories. I tried the "force security mode = 0770" and "security mask = 0770" but without success. Could someone help me please? Thanks a lot. J Gao -- -- To u