samba configuration

Roger Grosswiler roger at gwch.net
Wed Apr 13 07:14:00 UTC 2005


> I tried this command to mount those shares
> 
> mount -t cifs -o username=windowsusename
> //windows2003/sharename/anotherfolder /mnt/server
> 
> the samba then asks for the password of the windows  user,i gave the
> correct password but then Linux returns with an error
> 
> mount error 6 = No such device or address
> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
> 
> The /anotherfolder exists under windows2003/sharename.
> 
> I can access the windows2003/sharename by giving this command.
> 
> mount -t cifs -o username=windowsusename //windows2003/sharename /mnt/server
> 
> but i want to give access to the users only to some folders on which
> they have rights not to other folders means only one or 2 subfolders
> under /windows2003/sharename and not allowing access to all the
> folders under sharename.
> 
If i remember right, you just can mount SHARES not directories under a 
share.

If you want to have this, you should either:

-make a share out of this directory
-giving the apprpriate user-rights to the directory, so no other can 
access it

Roger




More information about the users mailing list