How to mount remote samba share from local host with multiple groups?
Posted
by Dragos
on Super User
See other posts from Super User
or by Dragos
Published on 2010-05-06T12:56:17Z
Indexed on
2010/05/06
13:18 UTC
Read the original article
Hit count: 277
I am using mount.cifs to mount a remote samba share (both client and server are Ubuntu server 8.04) like this:
mount.cifs //sambaserver/samba /mountpath -o credentials=/path/.credentials,uid=someuser,gid=1000
$ cat .credentials
username=user
password=password
I mounted a user from local system with username and password with mount.cifs but the problem is that the user is part of multiple groups on the remote system and with mount.cifs I can only specify one gid. Is there a way to specify all the gids that the remote user has?
Is there a way to:
- Mount the remote samba with multiple groups on the local system?
- Browse the mount from 1) with the terminal since I want to pass some files from samba as arguments to local programs.
Other solutions would be:
- nautilus sftp:// which runs through gvfs; but the newer gnome does not write to disk the ~/.gvfs anymore so I can't browse it in terminal.
- And the last solution would be NFS but that means that I have to synchronize the uids and gids on the local system with the ones from the server.
© Super User or respective owner