Gordon Ross <[email protected]> writes:

>> How can I arrange for user to be allowed to write to a mounted windows
>> share?
>> 
>> In this case I have permissions like below on /mnt/harvey-e
>> drwxr-xr-x 2 reader wheel 2 2009-03-26 07:10 harvey-e
>> 
>> # mount -Fsmbfs //harvey/harvey-e /mnt/harvey-e
>> Password: xxxxxx <enter>
>> 
>> After mount: ls -l:
>> drwx------ 1 root root 16384 2009-07-18 06:13 harvey-e
>> 
>> Any attempt by user to write to /mnt/harvey-e fails like:
>>   pfexec touch harvey-e/file
>>  touch: cannot touch `harvey-e/file': Permission denied
>> 
>> (With or without pfexec)
>
> You need to either run the mount command as user "reader"
> (assuming that's who should be able to r/w the mount).

I'm running it as root because user fails like this:
reader > mount -Fsmbfs //harvey/harvey-e /mnt/harvey-e
Password:
mount: mount_smbfs: /mnt/harvey-e: Not owner

Should user be able to do that?  If so how is it done?

> Alternatively, you can run it as root and supply the mount option
> "uid=..." as described by the mount_smbfs(1m) man page.

Yes, that's a workaround for now ... thanks

_______________________________________________
cifs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/cifs-discuss

Reply via email to