Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
|
08-31-2004, 11:10 AM
|
#1
|
Member
Registered: Feb 2004
Location: Portugal
Distribution: OpenSUSE 10.2
Posts: 78
Rep:
|
/etc/fstab problem
hi all
this is my current /etc/fstab:
/dev/hda3 / reiserfs defaults 1 1
/dev/hda1 /mnt/c ntfs auto,ro,user,exec,suid 1 0
/dev/hda2 /mnt/d vfat auto,rw,user,exec,suid 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
My purpose is that as user i can access hda1 for read-only and hda2 for read and write.
At the moment as user I get "permition denied" when entering the /mnt/c and /mnt/d directories.
help?
|
|
|
08-31-2004, 11:25 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249
Rep:
|
/dev/hda2 /mnt/d vfat auto,users,owner,exec,umask=000 0 0
and
/dev/hda1 /mnt/c ntfs auto,users,owner,exec,ro,umask=0222 0 0
Should work I think.
|
|
|
08-31-2004, 11:28 AM
|
#3
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994
Rep:
|
Check the permissions of the /dev/hda1 and /dev/hda2 devices. /dev/hda2 needs to be writeable by users in order to let you write to the partition.
Code:
chown root.users /dev/hda2
or
Code:
chmod o+w /dev/hda2
(Doing this with tmpfs is a bit harder).
The second thing to check is if you need a “mode” or “umask” option in fstab. “user” just allows regular users to mount and unmount the partition, and “rw” just allows something to write to the device if it has enough permissions to do so (mainly this just enables the write-caching). Read through This might also be a permissions issue with the /mnt/ directories. A directory needs to be both readable and executable before you can “cd” to it or list its contents, and must be writable before you can create files. You can see the permissions of a directory using: Hope that's of some help,
— Robert J. Lee
|
|
|
08-31-2004, 11:35 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249
Rep:
|
Once you have fstab set up, you should be able to access the drives in /mnt/c or /mnt/d as a regular user, because fstab sets the permissions. If you put "noauto" in fstab, you should also be able to mount them as a regular user by running "mount /mnt/c" NOT "mount /dev/hda1 /mnt/c". To run "mount /dev/hda1 /mnt/c" you would need to be root.
|
|
|
08-31-2004, 11:56 AM
|
#5
|
Member
Registered: Feb 2004
Location: Portugal
Distribution: OpenSUSE 10.2
Posts: 78
Original Poster
Rep:
|
that's my problem, setting up /etc/fstab i can't figure it out
|
|
|
08-31-2004, 11:57 AM
|
#6
|
Member
Registered: Aug 2004
Location: New York
Distribution: SuSE 9.1 Pro
Posts: 32
Rep:
|
quick and easy way to get access to that folder containing the partition, chmod -R 777 /mnt/c
|
|
|
08-31-2004, 12:06 PM
|
#7
|
Member
Registered: Feb 2004
Location: Portugal
Distribution: OpenSUSE 10.2
Posts: 78
Original Poster
Rep:
|
doesn't work
|
|
|
08-31-2004, 12:08 PM
|
#8
|
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249
Rep:
|
Quote:
Originally posted by mokojin
that's my problem, setting up /etc/fstab i can't figure it out
|
Did you try the fstab entries I posted above? They work for me.
|
|
|
08-31-2004, 12:34 PM
|
#9
|
Member
Registered: Feb 2004
Location: Portugal
Distribution: OpenSUSE 10.2
Posts: 78
Original Poster
Rep:
|
Quote:
Originally posted by m_yates
Did you try the fstab entries I posted above? They work for me.
|
sorry i haven´t seen your first post, now it works
but the umask=000 and umask=0222 what it means?
|
|
|
All times are GMT -5. The time now is 03:00 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
|
|