logo       

Re: [sshfs] follow_symlinks weird behaviour.: msg#00005

file-systems.fuse.sshfs

Subject: Re: [sshfs] follow_symlinks weird behaviour.

> OK. I already noticed someone else posted question about the same
> symlinks problem and proper patch was posted.
>
> Anyway, I have another problem. I am not sure if this the way it should
> be or not, but I am beeing asked for the password everytime I boot
> having the proper fstab entry and ssh keys in cromo/.ssh dir.
>
> This is how the fstab looks like:
> sshfs#cromo@xxxxxxxxxxx: /mnt/klej fuse user 0 0
>
> What happens if I try to mount as user and as root:
>
> 541:cromo@kromka:~$ mount /mnt/klej
> 542:cromo@kromka:~$ umount /mnt/klej
> 543:cromo@kromka:~$ sudo mount /mnt/klej/
> cromo@xxxxxxxxxxx's password:
>
> It doesn't ask for password when mounting as user, but it does if I
> mount as a root. Because of it doesn't mount nicely when I boot the
> system. It would be nice if sshfs provided some option that would allow
> to set the name of the user whose ssh key it should use.
> I know that I can simply copy the ssh key file into the /root/.ssh dir
> but I guess the proper option would be better.

Try -oidentityfile=/home/user/.ssh/id_dsa

> Also, is there any way to keep the mountpoint directory's permission
> flags after mounting? Currently after mounting it overrides the
> permissions with standard umask set on my system. This seems to be
> security problem. -o umask option is not helpfull as well, becuase it
> overrides the permissions of all the files in mountpoint directory,
> too. Best of these two would be some kind of umask option that would
> allow to do ug-rwx for example, so that we just remove some permissions
> (instead of overwriting them) on both mountpoint and files inside.

If you'd start sshfs in the recommended way (as user, not from
/etc/fstab), then all your problems would be solved, and sshfs would
run as user not as root, which is more secure.

The way to do this automatically is to do the mount from your
~/.profile startup script. You would have to check if it's already
mounted.

Miklos

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise