Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-30-2003, 03:12 PM   #1
LQ Newbie
Registered: Jun 2003
Posts: 4

Rep: Reputation: 0
Unhappy Can't mount as non-root user

Ok, I've searched this and many other forums. I've read the man pages. I've done "info mount". I have edited fstab with the proper entries, including the user option to allow non-root users to mount some smbfs shares. For some damn reason, I STILL get "mount: only root can do that" when I try to mount those smbfs shares. I can mount them as root, but then I get read-only access to the shares as non-root and no matter what I do with permissions on the mount point it does the same thing.
Is something overriding the user option? This is driving me kinda nuts.

Old 07-30-2003, 03:18 PM   #2
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189

Rep: Reputation: 30
for a quick fix you could try looking into using sudo to allow others to mount, have a read through
Old 07-30-2003, 03:28 PM   #3
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
I think there is some permission info in your smb.conf file..... that would be the most likely culprit.

Old 07-30-2003, 03:29 PM   #4
LQ Newbie
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, but...

Thanks, man. The bigger issue for me I guess is the read-only access I'm getting. That's why I started trying to mount it as myself (non-root). The way I have it now it's available automatically even after a boot, but I can't write to them. ?? No matter how impressed with myself I get for doing vertain things in linux, it never fails to humble me at least once in a while. I like that, though....

Thanks again,
Old 07-30-2003, 03:32 PM   #5
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
in the fstab you can add the entry such as umask=000 or specify the user id, which is the way i do it and add uid=500
your user id may be different but in this case mine is 500:
/dev/hdc1 /mnt/80gig vfat user,rw,exec,uid=500 0 0

thats an example of what mine looks like.


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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
mount cdrom as non-root user derfaust Slackware 31 07-30-2004 05:57 PM
Why can't a non-root user mount a cdrom? dokterneo Slackware 8 12-21-2003 07:01 PM
mount drives from user instead of root gonavy Linux - Newbie 2 11-29-2003 08:53 PM
Mount Cd as non-root user rayyen Linux - Newbie 4 08-31-2003 09:21 AM

All times are GMT -5. The time now is 05:50 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