How do I set permissions on a samba connection?

Pablo Alejandro Hamann linkstat at gmail.com
Wed Jun 26 03:49:34 UTC 2013


El 25/06/13 18:41, Bob escribió:
> ** Reply to message from Pablo Alejandro Hamann <linkstat at gmail.com> on Tue, 25
> Jun 2013 07:47:58 -0300
>
>>>>> I have an existing system which contains a LAN connected disk drive.  I
>>>>> have added a new computer on which I installed Ubuntu (this is my first
>>>>> linux experience).  From the Ubuntu computer I can read the files on
>>>>> the samba connected drive but I can not write to those files.  I have
>>>>> tried to change the permissions but can not locate where the drive is
>>>>> mounted.  So my question is how do I change the permissions?
>>>> Samba/CIFS, is IMO the wrong tool. For starters its intended to talk to 
>>>> winders machines, and the last time I checked, was still unable to work 
>>>> with the perms diffs between windows and any *nix.
>>> Experimenting with this problem I have discovered that I can create and delete
>>> files using the Samba connection.  I can not update the file after I created it
>>> or any other file that is already on the drive.
>>>
>>> It seems to me that there is a problem with the permissions using the Samba
>>> connection.  I would expect that if I can create or delete a file I should be
>>> able to update it.
>>>
>>>
>>>> You want nfs, but you'll need to do some configuring.  Its all in the man 
>>>> pages AFAIK.
>>> The disk drive is a Buffalo 1tb disk LAN attached.  I installed nfs and tried
>>> to mount the LAN disk with "-t nfs", the error message was "connection
>>> refused".  I also tried to mount the LAN disk with "-t smbfs" and got the error
>>> message "mount: unknown filesystem type 'smbfs'" even though the man page for
>>> mount states that smbfs is a valid file system.
>>>
>> Hi.
>>
>> May you can use cifs instead of smbfs.
>> Only need the cifs-utils package. This package provides utilities for
>> managing mounts of CIFS network file systems. A credentials file is
>> recommended if you want toautomont a networkresource at boot. For example:
>> # nano /etc/samba/mycred-file.conf
>> -- CONTENTS OF FILE --
>> username=your_username
>> password=your_password
>> domain=optional_domain_or_machine_name
>> -- END OF FILE --
>>
>> # chmod 600 /etc/samba/mycred-credfile.conf
>>
>> Then, you can use:
>> # mount -t cifs -o credentials=/etc/samba/mycred-file.conf,uid=1000
>> //server/shared /mount/point/
>>
>> The uid=1000 option is for make the user with uid 1000 the owner of the
>> mounted resource (use one appropiate for you).
>> If you want automont of thenetworkresource when the system start, so add
>> a line to your fstab file:
>>
>> # nano /etc/fstab
>> -- ADDSOMETHIG TO THIS AT THE END OF THE FILE --
>> //server/shared	/mount/point	cifs
>> credentials=/etc/samba/mycred-file.conf,auto,uid=1000,nounix,noserverino	0	0
>> -- END OF MODIFICTIONS --
> Pablo, thank you.  Using CIFS works.
>
You're welcome!!!!

Greetings!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 553 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130626/900b5a90/attachment.sig>


More information about the ubuntu-users mailing list