May 2, 2010

How to Mount Network Hard Drive (NAS) as Non-Root


Update: I figured out how to do this using fstab and wrote up a tutorial: :)

I just finished installing Kubuntu 10.04 Lucid and I'm trying to setup my backup script again. In a nutshell, I had a script that would connect using smbmount as my normal user account and then mirror my home folder to the external network attached hard drive with rsync. It is required, as far as I have tested, that rsync be run as user account and not root to work properly.

Part of the setup info I gleaned from this article:

In that article, it is recommended running this command to mount as non-root user:

chmod u+s /usr/bin/smbmnt

However, this file no longer exists in *buntu 10.04. Apparently smbfs has been modified for security reasons. Is there any other way to connect NAS drives as non-root user that is relatively secure? Struggled with this all day yesterday and still no solution.

Click Here!