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! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-30-2003, 03:12 PM
|
#1
|
LQ Newbie
Registered: Jun 2003
Posts: 4
Rep:
|
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.
TIA,
Chris
|
|
|
07-30-2003, 03:18 PM
|
#2
|
Member
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189
Rep:
|
for a quick fix you could try looking into using sudo to allow others to mount, have a read through http://www.courtesan.com/sudo/man/sudo.html
|
|
|
07-30-2003, 03:28 PM
|
#3
|
Member
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:
|
I think there is some permission info in your smb.conf file..... that would be the most likely culprit.
slight
|
|
|
07-30-2003, 03:29 PM
|
#4
|
LQ Newbie
Registered: Jun 2003
Posts: 4
Original Poster
Rep:
|
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,
Chris
|
|
|
07-30-2003, 03:32 PM
|
#5
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|