[Samba] Samba share is not writeable
James
jhall at jadeinternet.net
Thu Nov 28 02:17:00 GMT 2002
Thanks for the speedy reply. Sorry if the word 'permissions' is
incorrect.
I did as you suggested below, making the appropriate changes for my
network. Then I executed
mount /home/samba
and it mounted the share without error, but it was still not writeable.
The directory changed from drwx------ (unmounted) to dr-xr-xr-x
(mounted). I added dmask=0700 th the line that I added in /etc/fstab
between "gid=500" and "credentials..." Then the mounted directory was
dr-x------.
On Wed, 2002-11-27 at 20:45, Simeonidis, Steve wrote:
> I haven't played with permissions much but I've got the following
> line in my /etc/fstab file and it works fine.
>
>
> //abinidi/common /abinidi/common smbfs
> uid=500,gid=500,credentials=/etc/smbmount_passwd,workgroup=SGL-AUS,rw 0 0
>
> The content of the smbmount_passwd is
> username = xxxxxxx
> password = xxxxxx
>
> owned by root.
>
>
>
> I hope that helps.
>
> Thanks
>
> Steve Simeonidis
> Network Engineer, Spherion Education
> Spherion Group Ltd
>
> 1st Floor, 493 St. Kilda Rd, Melbourne VIC 3004, Australia
> Phone: +61 3 9243 2382 Fax: +61 3 9820 2010
> Email: stevesimeonidis at ap.spherion.com
>
> The information contained in this email and any attachments to it:
> (a) may be confidential and if you are not the intended recipient, any
> interference with, use, disclosure or copying of this material is
> unauthorised and prohibited; and
> (b) may contain personal information of the recipient and/or the sender as
> defined under the Privacy Act 1988 (Cth). Consent is hereby given by the
> recipient(s) to collect, hold and use such information and any personal
> information contained in a response to this email, for any reasonable
> purpose
> in the ordinary course of Spherion's business, including forwarding this
> email internally or disclosing it to a third party. All personal
> information
> collected by Spherion will be handled in accordance with Spherion's Privacy
> Policy.
> If you have received this email in error, please notify the sender and
> delete
> it.
>
>
>
> -----Original Message-----
> From: James [mailto:jhall at jadeinternet.net]
> Sent: Thursday, November 28, 2002 12:30 PM
> To: samba at lists.samba.org
> Subject: [Samba] Samba share is not writeable
>
>
> I am having difficulty with Windows shares mounted with smb on my linux
> machine. The mount directory will not have write permissions for anyone,
> no matter what. The mount directory that I use is /home/samba. It has
> 0700, or drwx------ permissions when it is not connected to Samba. It is
> owned by the user jhall, and the group root. When I mount it, if I use
> dmask 0777, I get dr-xr-xr-x. If I use dmask 0700, I get dr-x------, and
> so on. The subdirectories have the proper dmask, and thus are writeable.
>
> The shared directory on my Win XP Pro box is SharedDocs, and jhall has
> full permissions in this directory.
>
> Below is an example of my shell commands and subsequent output:
>
> [root at laptop jhall]# ls -l /home
> ##See that the dir samba is writable by jhall
> drwx------ 37 jhall users 4096 Nov 27 19:42 jhall
> drwx------ 2 jhall users 4096 Nov 27 11:09 samba
> drwx------ 21 stephie stephie 4096 Nov 27 14:58 stephie
>
> ##This is how I mount the share
> [root at laptop jhall]# mount -t smbfs -o
> user=jhall,uid=jhall,gid=root,dmask=0700,fmask=0777 //desktop/SharedDocs
> /home/samba
> Password:
>
> [root at laptop jhall]# ls -l /home
> ##Now it is mounted, and I can read and execute everything that
> ##is on my shared windows directory, but can only write things that
> ##are in a subdirectory, because they have the proper dmask of 0700
> ##I am logged in as jhall when I try to write to the directory.
> drwx------ 37 jhall users 4096 Nov 27 19:42 jhall
> dr-x------ 1 jhall root 4096 Nov 24 11:54 samba
> drwx------ 21 stephie stephie 4096 Nov 27 14:58 stephie
>
> [root at laptop jhall]# smbumount /home/samba
> ##I unmount the directory
>
> [root at laptop jhall]# ls -l /home
> ##And again have write permission
> drwx------ 37 jhall users 4096 Nov 27 19:42 jhall
> drwx------ 2 jhall users 4096 Nov 27 11:09 samba
> drwx------ 21 stephie stephie 4096 Nov 27 14:58 stephie
>
> I hope that this is enough information. Any help is appreciated!
>
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list