[Samba] how to automount password less samba share in linux ?

Stef Bon stef at bononline.nl
Fri Oct 23 04:02:28 MDT 2009


to use passwordless auth, use the guest option.
You can find this option in the man page of cifs.


J. Bakshi wrote:
> Dear list,
> I have a password-less samba shared  and it is used successfully from
> window PCs. I also like to make an auto-mount for linux pcs so that it
> can be used from linux boxes.  To achieve this I have made an entry in
> /etc/fstab as
> ```````````````````````
> // /home/test/serverdisk cifs  user,rw  0 0
> ````````````````````
> As root I can mount it and see all the contents of remote folder. It
> though asked for a password but simply giving an *enter* at password
> prompt mount the shared folder successfully. But then non-root user
> can't write on there. If I try to mount it as a non-admin user it failed
> with the following error as
> ``````````````````````````````````
>  mount serverdisk/
> Password:
> mount error 1 = Operation not permitted
> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
> ````````````````````````````````
> Here I did the same at password prompt i.e. simply pressing *enter*
> which worked as root ; but this time not !!!
> Have I missed anything or any special arrangement to follow as non-admin ?
> Need some enlightenment.

More information about the samba mailing list