LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-31-2004, 11:26 PM   #1
johnlong_03
LQ Newbie
 
Registered: Jul 2004
Location: Chisholm, Minnesota
Distribution: Slackware 10
Posts: 3

Rep: Reputation: 0
Question Question about mounting


ok....here is my question


I'm running Slack 10. When i log in as root, i (of course) have permissions to view my windows partitions. I set my user account up to have permissions to mount my partitions, but under my user account, i cannot browse these mounted partitions, which i can browse when i am root. i was curious if anyone knows how to get around this. i know i can copy and paste these files as root, but i don't like resetting permissions to give my user account access to these files.

any help will be appreciated.

Thanks in advance
 
Old 07-31-2004, 11:33 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
You should change your /etc/fstab file to give users the possibility to mount the windows partition and have access to it.

This is part of my fstab file (only the windows partitions):

/dev/hdb1 /win/c ntfs noauto,gid=100,user,umask=007 1 0
/dev/hdb2 /win/d vfat noauto,gid=100,user,umask=007 1 0

I'll explain the parameters:
noauto - You can delete this one, what it does is to not mount the partition on boot.
gid=100 - This tells that the files owner group will be 100 (the is users group).
user - This allows a user to u/mount the partition.
umask = 007 gives read,write,execute permitions to owner and group and nothing to others. (it's the opossite to chmod where it should be 770).

If you have any doubt you can read fstab's man page or search this forums, there have been some posts about these a few weeks ago.

Last edited by gbonvehi; 07-31-2004 at 11:38 PM.
 
Old 07-31-2004, 11:50 PM   #3
johnlong_03
LQ Newbie
 
Registered: Jul 2004
Location: Chisholm, Minnesota
Distribution: Slackware 10
Posts: 3

Original Poster
Rep: Reputation: 0
im not quite sure how i would do that, so ill just post my fstab...

/dev/hdb2 swap swap defaults 0 0
/dev/hdb3 / ext3 defaults 1 1
/dev/hda1 /C ntfs noauto,users,ro 1 0
/dev/hdb1 /D ntfs noauto,users,ro 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,users 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
 
Old 08-01-2004, 01:11 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Try :

/dev/hda1 /C ntfs noauto,users,ro,umask=0222 0 0
/dev/hdb1 /D ntfs noauto,users,ro,umask=0222 0 0

umask :
if you know a little network things, it is like a network mask.
0777 - 0222 = 0555
With an umask of 0222, you have 0555 permissions for ntfs files (read and execute for all), there is a "0" before "222" to indicate it is an octal number.
 
Old 08-01-2004, 01:18 AM   #5
johnlong_03
LQ Newbie
 
Registered: Jul 2004
Location: Chisholm, Minnesota
Distribution: Slackware 10
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks alot, it worked great
 
  


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
question about mounting a new hd sunman Slackware 4 11-24-2005 02:13 AM
Quick mounting question viniosity Linux - Newbie 2 03-23-2005 11:51 AM
Mounting Question ZeroX-2 Slackware 4 12-02-2004 07:48 AM
mounting question... hollywoodb Linux - Newbie 4 08-26-2003 03:11 PM
Mounting question? blither Linux - General 3 01-20-2003 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:13 AM.

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