Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 08-27-2008, 06:11 PM   #1
LQ Newbie
Registered: Jul 2008
Posts: 14

Rep: Reputation: 0
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


Old 08-27-2008, 06:56 PM   #2
LQ Newbie
Registered: Jul 2008
Posts: 14

Original Poster
Rep: Reputation: 0
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.

Old 08-28-2008, 12:48 AM   #3
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
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).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filesystem root ( / ) mounts read only at boot, can't re mount RW TheMusicGuy Debian 10 07-25-2006 06:14 PM
After Ghost 4 Linux Root Filesystem mounts readonly tjabaut Linux - General 6 07-18-2006 07:51 AM
access NTFS mounts without root btaber Linux - Hardware 4 03-23-2004 04:05 PM
root partition mounts ro iceman47 Linux - General 2 01-21-2004 06:57 AM
cant resize root thru rescue, auto mounts root dir absolutal Linux - Newbie 0 06-18-2003 03:06 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration