Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If I mount as remote samba (running on Linux) with Nautilus (sftp://) with a username and password will the permissions work as if I were on the remote system regardless of the local user name and the groups the user is part of ?

share|improve this question
1  
You sound confused. SMB and SFTP are two separate protocols. Which do you actually mean? –  Ignacio Vazquez-Abrams May 6 '10 at 10:03
add comment

1 Answer

Samba is the Linux subsystem that handles Windows Networking (SMB/CIFS). SFTP is the SSH version of FTP.

Nautilus mounts both via GVFS. The permissions you'd have on the remote filesystem will depend on how the remote system is configured, and what remote user you use to authenticate to the remote system.

Unless your local system and the remote server get their users and group memberships from some centralized directory service (LDAP or the like), the permissions you get on the remote connection will likely be different than the permissions you have on the local system.

Further, the Samba subsystem can provide another set of permissions, and is not necessarily configured to synchronize those with the system user. In contrast, the SFTP permissions you get will be those of the remote user you're authenticating as when logging into the remote server.

share|improve this answer
    
Thanks, great explanation. I was using mount.cifs until now but since I don't have users synchronized between these 2 systems I found the sftp from nautilus better and easier. The only problem that I still have is how to browse the sftp:// mount on the local system since the ~/.gvfs is empty. Thank you –  Dragos May 6 '10 at 12:21
    
@dragos: ooo, they took ~/.gvfs mounts away?? there's probably a config option to bring that back, but i don't know it offhand. –  quack quixote May 6 '10 at 13:14
    
Can you please have a look on that ? Or whom I can talk to about bringing the ~/.gvfs back. I read that in recent Gnome the gvfs does not exist on the disk anymore. –  Dragos May 7 '10 at 6:58
    
@dragos: actually, it works for me in Nautilus in Ubuntu 10.04 with both Samba and SFTP connections. i connected to the server via the Places > Connect to Server menu, and both mounts showed up under ~/.gvfs -- "~/.gvfs/share on server" for Samba, and "~/.gvfs/sftp for user on server" for SFTP. this was on a new user with default Gnome config, so either your procedure is different or your config is different (or i'm making assumptions about your software versions that just aren't true). –  quack quixote May 7 '10 at 8:07
    
Under Ubuntu Server 8.04 with gnome-core applied from 8.04 repositories it does not work. It seems that its a buggy Gnome/Nautilus version or they simply decided to not write it on disk with that version. –  Dragos May 7 '10 at 12:39
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.