LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-17-2014, 01:46 PM   #1
thealmightyos
Member
 
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 119

Rep: Reputation: 1
User mounts not supported by CIFS (fstab)


Hi all

I am attempting to map my work remote drives to my laptop so I can access them as I move about the building. But here is the problem...
I need to mount and unmount these drives as I come and go from work because they are not accessible outside the building. My idea is to put them all in fstab and mount/umount them from the gui. But I got a major problem: users can not mount cifs

Here is what I have in fstab:
Code:
\\SERVER\SHARE /MOUNT/POINT cifs uid=TheAlmightyOS,user,rw,noauto,credentials=/file 0 0
I can mount no problem as root. But as a normal user:
Quote:
This program is not installed setuid root - "user" CIFS mounts not supported.
So, I want to figure out how to give my user AND MY USER ONLY permission to do CIFS mounts or, alternatively, any options I could add to fstab to allow this sort of thing. Ideas?

ALMOST FORGOT: on CentOS 6.5

Last edited by thealmightyos; 07-17-2014 at 01:53 PM. Reason: forgot my distro info!!
 
Old 07-17-2014, 06:14 PM   #2
dentman
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
If you can't mount you can't use either! Right?
Do you possess root privilege? Because you can mount as root drop back to user and dismount as root.

Rick
 
Old 07-21-2014, 10:35 AM   #3
thealmightyos
Member
 
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 119

Original Poster
Rep: Reputation: 1
ok, ANYONE ELSE WHO CAN READ want to help me out on this one?
 
Old 08-03-2014, 02:56 AM   #4
andre@home
Member
 
Registered: Oct 2003
Distribution: 2x Debian 8.1 webdav servers
Posts: 93

Rep: Reputation: 44
Do not know CentOS, but this?
https://davejamesmiller.com/blog/lin...-non-root-user
http://askubuntu.com/questions/24348...-non-root-user
http://wiki.centos.org/TipsAndTricks/WindowsShares
 
Old 08-12-2014, 10:27 AM   #5
thealmightyos
Member
 
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 119

Original Poster
Rep: Reputation: 1
Thank you for your reply. I am currently working on the last one while experimenting with (attempting to break) CentOS7. The other two go back to the user needing to ether su or sudo in order to mount the drive. This is very inconvenient as I chose an absurdly long pass word (phrase) for my root password on my laptop for security reasons. Having to type that in before and after every meeting is very cumbersome.

Giving the user the ability to mount network shares doesn't seem like that huge of a risk but maybe I am missing something? I just want to mount the network shares when I need them.

If I can get autofs to work like I am messing with in CentOS7 it could solve this issue. But then again, that solution requires that the server be able to resolve the laptop's hostname. I am unsure how to make that happen without bugging the admin and I really don't want to do that for something so trivial.

Last edited by thealmightyos; 08-12-2014 at 10:28 AM.
 
  


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
This program is not installed setuid root - "user" CIFS mounts not supported. thomas2004ch Linux - Software 3 08-13-2013 08:40 AM
nfs mounts and cifs shares zahheb Linux - Newbie 1 08-08-2012 07:13 AM
[SOLVED] autofs, fstab and manual cifs mounts fail if using credentials file carltm Red Hat 1 12-02-2009 06:39 AM
Nautilus Computer doesn't show cifs mounts from fstab Abyteapart Fedora 0 08-04-2009 02:40 PM
regular user mounts and fstab (again) clawder Slackware 7 12-31-2004 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:40 PM.

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