[NBLUG/talk] mounting & permissions on samba share

Travis isrneonx at gmail.com
Fri Jan 22 15:37:32 PST 2010


I forget what file it is, but in the samba config file you can set  
what user owns the files, a umask and general permissions. and you  
will have to restart your smb after your done.

it may be in /etc/samba/smb.conf or something like that.



On Jan 22, 2010, at 2:27 PM, micxz <micxz at micxz.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Hello everyone. I have what I think should be a simple Q. I would like
> to know how I can mount my samba share on my laptop and be able to
> create files or folder with the correct permissions. Every time I try,
> I need to login to the server (mars) and change permissions before I
> can write to the share.
>
> As root I:
> mount -t cifs //10.10.10.2/backupdrive /media/marsmnt -o user=micxz
> Password: ******
>
> Then as regular user:
> micxz at phybernuker:/media/marsmnt> mount | grep mars
> //10.10.10.2/backupdrive on /media/marsmnt type cifs (rw,mand)
> micxz at phybernuker:/media/marsmnt> mkdir test
> mkdir: created directory `test'
> micxz at phybernuker:/media/marsmnt> touch test/file
> touch: cannot touch `test/file': Permission denied
> micxz at phybernuker:/media/marsmnt> chmod 770 test/
> chmod: changing permissions of `test/': Operation not permitted
>
> Thanks for any input. - Micxz
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (GNU/Linux)
> Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
>
> iEYEARECAAYFAktaJlkACgkQSyh53PiSKK+HjgCdGWavKkBBeDaJHUo5z92Nz3Wd
> 9GsAnirtCwiKeQ3Zuwqapxrh6l/s+Aph
> =pE+5
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> talk mailing list
> talk at nblug.org
> http://nblug.org/cgi-bin/mailman/listinfo/talk



More information about the talk mailing list