how to mount specific drive for specific users in ubuntu 11.04?


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu how to mount specific drive for specific users in ubuntu 11.04?
# 1  
Old 07-13-2012
how to mount specific drive for specific users in ubuntu 11.04?

hi friends ...

could u tell me how to mount specific drive (ntfs or fat 32) for specific users in ubuntu 11.04 ?
ie ,if there is a user called staff (a desktop user ) ,then he should able to use staff drive only ?

thanks in advance ...Smilie
# 2  
Old 07-13-2012
What you really want is some other options, not different versions of /etc/fstab to mount filesystems specifically for each user. That is possible, you will wish you never tried it, IMO. Basically it involves booting Linux from a flash drive that each user carries around. And the system becomes unbootable without a flash drive. And userA can give his flash drive to userB, then userC flushes his down the toilet by accident. No.

One best bet is to chroot the staff user and mount the disks(s) you want so they can be seen in the chroot jail. This is a major exercise if you've never done - google for 'chroot jail tutorial'

A simpler option is to use ACL's on the mountpoints of any disk/filesystem you want to control. Disallow access by the user staff for those mountpoints. The affected user can do a df -h but will just get errors. They cannot do ANYTHING on those drives. Just be sure you do not block them completely out of system directories like /usr, /etc, /tmp,
/var/tmp and so on. You can prevent staff from writing to /usr, but that should be the default anyway for every user except root.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to Limit ftp access parameters for specific users?

Dear friends, :) I create new user useradd -g other -d /export/home/sltftp -m -s /bin/bash -c "SLT user account for TMA ftp backup" sltftp now i need do restrict thees chmod delete overwrite rename from this user:(for all the files in the server ,sltftp user can only able to download... (4 Replies)
Discussion started by: darakas
4 Replies

2. UNIX for Advanced & Expert Users

Blocking particular website for specific thinclients on Ubuntu

We have server which is connected with more than 10 thin client machine. I have tried to block the websites ( facebook, orkut,twitter ) for all the users. it works fine for me. But , I want to block for particular user ( thinclient ) or by the way of IP address of machine. How can I do that. (3 Replies)
Discussion started by: pavun_cool
3 Replies

3. Shell Programming and Scripting

Script to monitor directory size of specific users

Hi, i am new to shell scripts, i need to write a script that can monitor size of directory of specific users. Please help. Thanks, Nitin (2 Replies)
Discussion started by: nicksrulz
2 Replies

4. Shell Programming and Scripting

Script Help -- documenting specific users that log into server

Hello All, I am trying trying to write a shell script that will do a couple things: 1.) Identify any username that logs into the server. 2.) When the user logs out, send them an email detailing their log in/out times, duration logged in, and what processes they ran. Basically,... (3 Replies)
Discussion started by: SecureScript
3 Replies

5. Shell Programming and Scripting

customized shell for specific users

Hi there I have an SFTP over Solaris as well it runs Samba. I need some users (outsiders) to use my SFTP facility as well to use the Samba. However i don't want them do anything else except file transferring via SFTP or Samba. I was thinking to customize their Shell so that they would not run... (1 Reply)
Discussion started by: Time_Racer
1 Replies

6. Solaris

Is it possible to setup a samba share to always mount to a specific Windows drive letter???

I'm trying to setup Samba in a solaris zone... Is there a way to setup Samba so that every Windows machine that tries to connect to the share always gets it mounted under the same drive letter (e.g. H:)??? My Samba share (in smb.conf) /home/pickup I want that all Window users get it mounted... (3 Replies)
Discussion started by: verdepollo
3 Replies

7. Solaris

Directory restriction for specific users on Solaris

Hi all, i have a question about directory accessing. Question: therese is a x user which can login system, x user can only access specific directories on the system, even y directory has r-x access right for OTHER, x user will not access the y directory. this x user must access specific... (4 Replies)
Discussion started by: nibiru78
4 Replies

8. UNIX for Advanced & Expert Users

Restrict access to specific users.

Hi All! I would like to know if there is any specific way by which I can restrict access to apecific users (ip addresses). OS : Red hat linux Thanks! nua7 (6 Replies)
Discussion started by: nua7
6 Replies

9. AIX

Finding a specific UID on a site with hundreads of users.

Hello, I am not the AIX guru.. This might seem simple for a lot but I am not sure where to start.. So here is my question: I have a unix account on a remote site. My UID is 999999. Now I need to create my account at my main site, with the same UID. So i have to make sure the UID 999999 is... (1 Reply)
Discussion started by: maxalarie
1 Replies

10. Shell Programming and Scripting

Test to see if a drive is mounted at a specific point

I have a script that backs up our storage drive daily to one external drive and weekly to another. What I'd like to do is find a way, in the script, to test whether the drives are mounted so that it doesn't accidentally fill up the main drive in the event of a drive failure, etc. Any ideas on how... (1 Reply)
Discussion started by: spectre_240sx
1 Replies
Login or Register to Ask a Question