Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-12-2007, 07:57 PM
|
#1
|
|
Member
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934
Rep:
|
Can't automount CIFS as normal user
Using a tutorial found here: http://lists.olug.org/pipermail/olug...er/015520.html
I have set up my mountpoint.
My fstab entry currently is:
Code:
//192.168.1.101/e$ /mnt/greendata cifs rw,noauto,user,credentials=/etc/samba/cred_green 0 0
I am able to mount successfully as root, and can access rw the mount as normal user once mounted as root.
However, what I can't do is mount as the user.
Based on the tutorial I tried:
Code:
//192.168.1.101/e$ /mnt/greendata cifs rw,noauto,user,credentials=/etc/samba/cred_green,uid=500,gid=500 0 0
Other ideas were:
Code:
//192.168.1.101/e$ /mnt/greendata cifs rw,noauto,user,credentials=/etc/samba/cred_green,uid=[username] 0 0
//192.168.1.101/e$ /mnt/greendata cifs rw,noauto,user,credentials=/etc/samba/cred_green,noperm 0 0
As normal user, executing the command: "mount greendata", I get the following error:
Code:
mount error 1 = Operation not permitted
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
So far, no luck. Help?
Last edited by SlowCoder; 05-12-2007 at 08:01 PM.
|
|
|
|
05-13-2007, 05:08 PM
|
#2
|
|
Senior Member
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware 13.1
Posts: 1,471
Rep:
|
I have a similar problem, that a normal user cannot mount the cifs share (it was possible with smbfs though before that). My workaround is to write the fstab entry and add permissions for the user or all users to mount with "sudo". That way it works flawlessly. I do not use the credentials part, don't know if it makes a difference.
My fstab entry
Code:
//192.168.124.126/C /mnt/nike/c cifs noauto,users,rw,guest,uid=1000,gid=100,iocharset=iso8859-15,codepage=cp850 0 0
My sudo entry (created by launching "visudo"):
Code:
%users ALL=NOPASSWD:/sbin/mount /mnt/nike/c
%users ALL=NOPASSWD:/sbin/umount /mnt/nike/c
Hope this helps 
|
|
|
|
05-14-2007, 10:53 AM
|
#3
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
In order of my idea of likelihood: - ",user," -> ",users," ?
- Can you browse the share by any other mechanism? -- e.g. smb4k or "smb:"
- How about removing the "credentials=..." temporarily?
- Could in be a problem on the M$ side?
- Might a "umask" help?
|
|
|
|
05-14-2007, 12:35 PM
|
#4
|
|
Senior Member
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware 13.1
Posts: 1,471
Rep:
|
And to add some more thoughts: I noticed that you write "e$" for the share name. When I watched the shares on a Windows machine some time ago with krusader, it showed two entries for each one share. If I remember it right it didn't work for me to put the $ at the end. Maybe try with just "e" instead of "e$"?
|
|
|
|
05-14-2007, 03:43 PM
|
#5
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
Is mount.cifs chmod +s? I.e., is the setuid bit set? If not, no user could ever mount with it.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:43 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
|
|