-   Slackware (
-   -   only root can own remote mounts. (

slackermax 08-27-2008 07:11 PM

only root can own remote mounts.
Hello all,

I have a bit of a problem. I am trying to connect a new slackware install to a remote partition that has all of my files on it.

Here is the line in /etc/fstab which mounts the partition but when I try to mount (as root) it asks for a password and subsquently mounts the partition as root.

// /home/myuser/movies  smbfs
auto,credentials=/home/myuser/.credentials,uid=500,umask=000,user  0 1

(myuser really being my user)
the .credentials file is 744 and owned by my user
the file looks like this:


(again my login credentials for the remove file system)

Here is what is going on in CLI when I mount

#before mount
drwxr-xr-x  2 myuser users    48 2008-08-28 22:38 movies
root@SlackWare1:/home/myuser# mount movies/
#after mount
drwxr-xr-x  1 root    root  4096 2008-08-28 23:05 movies

also as my user when I try to touch a file 'test'
I get:

touch: cannot touch `test': Permission denied
my user id is 500



slackermax 08-27-2008 07:56 PM

I figured it out...

I had line breaks that I thought were there because of the editor. I removed them and presto worked like a champ.


saulgoode 08-28-2008 01:48 AM

You probably should not have your .credentials file being world readable. When I first read your post, I thought that was your problem. I am not familiar with Samba but I know that SSH will fail if your private keys are world readable (which seems like a good policy).

All times are GMT -5. The time now is 03:22 AM.