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.
|
 |
04-22-2012, 07:23 AM
|
#1
|
LQ Newbie
Registered: Apr 2012
Posts: 4
Rep: 
|
Mounting drive for a user
I want to mount /dev/sdb1 for one specific user to access only.
That user is not root.
If I mount to /mount/whatever then it's public and all users can access it.
I tried to mount it to /home/userx/whatever thinking only that user would have access but he could not access it (only root could). The drive also appeared in the file manager for other users which it need not.
How should I go about mounting this to achieve the desired goal? I'm using slackware btw.
|
|
|
04-22-2012, 09:58 AM
|
#2
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep: 
|
In fstab mount option should have nouser, owner. Just remove rwx access to mount point for others: chown chmod
Also there is a difference between /mnt/abc and /media/abc
|
|
|
04-22-2012, 03:43 PM
|
#3
|
LQ Newbie
Registered: Apr 2012
Posts: 4
Original Poster
Rep: 
|
That doesn't seem to work...
I set uid=myuser,fmask,dmask in fstab and the rights are correct now.
|
|
|
04-23-2012, 08:22 AM
|
#4
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep: 
|
|
|
|
All times are GMT -5. The time now is 06:34 PM.
|
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
|
|