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-12-2003, 10:43 PM
|
#1
|
Member
Registered: Jul 2003
Distribution: Slackware 9.1; Gentoo
Posts: 68
Rep:
|
Can't view NTFS drive as user!
I've got my /dev/hda1 drive mounted...it's an NTFS drive. I can read it fine as root. But, as we all know, running as root all the time isn't the greatest of ideas. There are files I want to access on this drive, but don't want to be logged in as root. I've tried "chmod" and "chown" but neither seem to work. I still can't access this directory even though it says permissions and ownership has been changed.
Any clues?
|
|
|
08-12-2003, 10:50 PM
|
#2
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Rep:
|
how did you mount it?
I assume you add an entry into /etc/fstab
Can you post it if that is the way you did it?
|
|
|
08-12-2003, 10:53 PM
|
#3
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
Try this in your /etc/fstab:
/dev/hda1 /win ntfs uid=500,gid=500,umask=000,exec,dev,suid,rw 1 0
Got it from http://members.cox.net/laitcg/new/wp.html
|
|
|
08-12-2003, 11:46 PM
|
#4
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Quote:
/dev/hda1 /win ntfs uid=500,gid=500,umask=000,exec,dev,suid,rw 1 0
|
Tangle - I wouldnt tell him to use this - Its an NTFS filesystem he's mounting
You've give him a
umask=000
This will give Read Write and Execute access on all files -
Writing to a NTFS filesystem is likely to corrupt it.
Also you've gave him
rw
This also allows the possibility to Write to the partition.
This is more suitable
/dev/hda1 /mnt/windows ntfs auto,ro,umask=222,uid=501 0 0
Just substitute in your partition, mount point and User id number.
You can get your User ID Number by opening a command line and typing:
id username – (substitute username with whatever your username is)
Look for the
uid=xxx
thats your user id number.
Last edited by Skyline; 08-12-2003 at 11:52 PM.
|
|
|
08-13-2003, 09:37 AM
|
#5
|
Member
Registered: Jul 2003
Distribution: Slackware 9.1; Gentoo
Posts: 68
Original Poster
Rep:
|
Thanks guys, I'll give that a shot once I get home.
I did add the mount to fstab; but I read somewhere on how another person did it and instead of the string "auto,ro,umask=222,uid=501" I simply have defaults. So, I'll try changing that as you have suggested, Skyline.
Thanks!
|
|
|
08-13-2003, 10:00 PM
|
#6
|
Member
Registered: Jul 2003
Distribution: Slackware 9.1; Gentoo
Posts: 68
Original Poster
Rep:
|
Did not work. I have the string in my /etc/fstab just as Skyline has posted, except I've changed it according to my system and my uid. I, as my username, cannot access the directory. Root does it just fine. Works find for my username at work...aggrivating.
|
|
|
All times are GMT -5. The time now is 11:30 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
|
|