LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-27-2008, 06:11 PM   #1
slackermax
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.
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
 
Old 08-27-2008, 06:56 PM   #2
slackermax
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.

max
 
Old 08-28-2008, 12:48 AM   #3
saulgoode
Member
 
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).
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:15 AM.

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