LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   only root can own remote mounts. (http://www.linuxquestions.org/questions/slackware-14/only-root-can-own-remote-mounts-665897/)

slackermax 08-27-2008 06: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.
Code:

//192.168.2.18/MyFiles /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:
Code:

username=myuser
password=password

(again my login credentials for the remove file system)

Here is what is going on in CLI when I mount
Code:

#before mount
drwxr-xr-x  2 myuser users    48 2008-08-28 22:38 movies
root@SlackWare1:/home/myuser# mount movies/
Password:
#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:
Code:

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

Thanks,

max

slackermax 08-27-2008 06: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.

max

saulgoode 08-28-2008 12: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:38 AM.