LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-12-2004, 09:05 AM   #1
c0d3-z3r0
LQ Newbie
 
Registered: Jun 2004
Distribution: Ubuntu 5.04
Posts: 21

Rep: Reputation: 15
permission problems for normal user


i have

/dev/hda8 / ext3 defaults 1 1
/dev/hda6 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/dvd /media/dvd auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
/dev/hda5 /mnt/WindowsD ntfs user,ro,umask=022 0 0
/dev/hda1 /mnt/WindowsC ntfs user,ro,umask=022 0 0

in my fstab data. I can view my Windows Hard Drive as root but I'm having problems on reading as a normal user. I dont know whats wrong in my fstab file. could someone give me some tips that would be very helpful.

Last edited by c0d3-z3r0; 06-12-2004 at 12:04 PM.
 
Old 06-12-2004, 10:02 AM   #2
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Rep: Reputation: 15
Do you have the correct permissions on fstab? Try 'chmod 644 fstab' as root in order for normal users to be able to read the file.

What error message do you get?
 
Old 06-12-2004, 11:15 AM   #3
c0d3-z3r0
LQ Newbie
 
Registered: Jun 2004
Distribution: Ubuntu 5.04
Posts: 21

Original Poster
Rep: Reputation: 15
RE

As a normal user, when I open the WindowsC Directory, this message shows:

Unable to enter file:/mnt/WindowsC/. You do not have access rights to this location.
 
Old 06-12-2004, 12:30 PM   #4
drumaholik
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Rep: Reputation: 0
try changing your "umask=022" to "umask=000"
 
Old 06-12-2004, 12:57 PM   #5
c0d3-z3r0
LQ Newbie
 
Registered: Jun 2004
Distribution: Ubuntu 5.04
Posts: 21

Original Poster
Rep: Reputation: 15
I tried it before but it never works. I'm just now wondering why I can read my WindowsD Partition as a normal user but not the WindowsC Partition. What am doing wrong?
 
Old 06-12-2004, 01:33 PM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
http://www.linuxquestions.org/questi...hreadid=182104

try "umask=144" it works for me!

edit: look at the folder permissions AFTER you mount the drive to see what chages you have made

Last edited by Tuttle; 06-12-2004 at 01:36 PM.
 
Old 06-12-2004, 04:14 PM   #7
c0d3-z3r0
LQ Newbie
 
Registered: Jun 2004
Distribution: Ubuntu 5.04
Posts: 21

Original Poster
Rep: Reputation: 15
i tried "umask=144" but it still didnt worked for me. As I was running Suse 8.2, the "umask=000" worked fine. Now im running Suse 9.0 and WinXp with NTFS drive. One thing I dont understand is that sometimes with the "umask=022", I can read my WindowsD as a normal user, about editing the fstab on many ways and set the value back to "umask=022", normal users cant read it anymore. I have no idea what happened. What could it be?
 
Old 06-12-2004, 08:02 PM   #8
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
see "man umask" to see how it works, thats the only help i can give on the subject.

edit: except this! umask changes the existing permissions - so try without a umask and see what needs to change.

Last edited by Tuttle; 06-12-2004 at 08:03 PM.
 
  


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
Submount, "permission denied" when writing to floppy as normal user DaneM Linux - Software 5 02-22-2006 02:05 PM
ssh login with normal user, receive: /dev/null: Permission denied mark78301 Red Hat 3 11-12-2005 09:20 AM
permission problems: access Win as user digitalhead Slackware 19 07-24-2005 04:26 AM
How can give ROOT permission to a NORMAL USER bipinkdas Linux - Software 2 06-23-2005 11:03 PM
mounting problems as normal user wisdom Linux - Networking 1 01-19-2005 10:26 AM


All times are GMT -5. The time now is 05:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration