LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-23-2010, 12:47 AM   #1
vijay_babu1981
Member
 
Registered: Nov 2004
Location: india
Distribution: fedora 10
Posts: 82

Rep: Reputation: 19
/etc/fstab question


I have a partition mounted as following in my /etc/fstab

Quote:
/dev/sdb1 /mnt/tmp ext4 defaults 0 0
This makes it mount for root after boot/login. Normal user cannot use it.

Will changing it to
Quote:
/dev/sdb1 /mnt/tmp ext4 auto,user,rw 0 0
make it mount for the user after boot/login?

Specifically, when are devices mentioned in /etc/fstab mounted? During boot as root or at login as user?

Regards
 
Old 07-23-2010, 12:58 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Assuming you want it automatically mounted at boot time, the fstab entry looks fine.

You probably just need to change the permissions:

Code:
chmod aog+w /mnt/tmp
Have a look at the fstab man page for more information.


Evo2.
 
Old 07-23-2010, 02:52 AM   #3
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
As per the previous poster - remember that your fstab is meant to persist your filesystem mounts in the event of a reboot.

This is not related to any of your users on a reboot. Thus irrespective of who reboots the machine; your original entry is still valid and the the mount will always happen.

What you can control is the permissions to that filesystem on a per user basis.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
fstab question drjay1627 Linux - Newbie 6 10-01-2009 01:45 PM
/etc/fstab question yenonn Linux - Newbie 1 07-20-2006 12:27 AM
A question regarding fstab trainee Slackware 6 05-22-2005 03:03 PM
fstab question cjstm Linux - Newbie 1 12-12-2004 03:46 PM
fstab question phoenix99 Linux - Newbie 3 06-29-2004 02:30 PM


All times are GMT -5. The time now is 04:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration