LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-26-2005, 10:29 AM   #1
simpleaudio
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Rep: Reputation: 0
access denied


I am very new to Linux. Two days ago I installed Suse 9.2. Love it, but I'm having a big problem. I've done a search of the threads and have not found a solution.
When I'm in normal user mode I can not save any files or create any folders in my drives. I always get access denied as a response. They are NTSF format. When I'm in root it is not a problem. I would like to be able to save things I download. It wont even let me save to the Linux drive.
Thanks in advance for help. Could we keep responses simple. I have no idea how to do anything. Does anyone know of a good Linux book?
 
Old 03-26-2005, 10:35 AM   #2
auximini
Member
 
Registered: Dec 2003
Location: Calgary, AB
Distribution: Any!
Posts: 146

Rep: Reputation: 18
hmm... as simple as I can:

First you'll need to know what your user ID and group ID numbers are. This can be accomplished like so:
Code:
joe@tanis:~$ id
uid=1000(joe) gid=1000(joe)
So my UID would be 1000 as well as my GID

Next, you'll need to edit the /etc/fstab file and find the line where your NTFS drive is defined. My fat drive looks like so:
Code:
/dev/hdb1       /home/joe/MyDocuments   vfat    defaults,uid=1000,gid=1000      0 0
Once you find that line, edit the fourth column and add the uid and gid stuff.

Finally unmount and remount the drive (as root)
Code:
umount /dev/hdb1
mount /dev/hdb1
Now all the files will be owned by you and you may write to the drive without root access.
 
Old 03-26-2005, 10:43 AM   #3
simpleaudio
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks

Thanks so much for your help. I'm going to give it a try right now. Do you need to de in root mode when you the editing?

Cheers
 
Old 03-26-2005, 10:47 AM   #4
auximini
Member
 
Registered: Dec 2003
Location: Calgary, AB
Distribution: Any!
Posts: 146

Rep: Reputation: 18
Yes, you'll need to be root
 
Old 03-26-2005, 11:09 AM   #5
simpleaudio
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
permission denied

Well I gave it a shot. After entering /etc/fstab I got the response permission denied. Also I found my uid=1000 but my gid=0. Is the that right?

Thank you for your help
simpleaudio0100001
 
Old 03-26-2005, 11:59 AM   #6
simpleaudio
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Sorry

Sorry, that didn't work at all.

Any other ideas
 
Old 03-26-2005, 12:02 PM   #7
simpleaudio
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
I get this message when I try to change permission on that drive. Changing the attributes of files is not supported with protocol drives. What cen I do about this?
 
Old 03-26-2005, 12:36 PM   #8
auximini
Member
 
Registered: Dec 2003
Location: Calgary, AB
Distribution: Any!
Posts: 146

Rep: Reputation: 18
The GID being 0 might be normal.

Please paste the fstab file that you were editing and what changes you made.
 
Old 03-26-2005, 12:44 PM   #9
simpleaudio
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
o.k. this is what I got.
uid=1000(my name),gid=0(root) groups=0(root),16(dailout),33(video)

I changed the /etc/fstab to

/dev/hdb2 / reiserfs acl,uid=1000,gid=0,user_xattr 1 1
/dev/hda1 /windows/C ntfs ro,users,uid=1000,gid=0,umask=0002,nls=utf8 0 0
/dev/sda1 /windows/E ntfs ro,users,uid=1000,gid=0,umask=0002,nls=utf8 0 0
/dev/hdb1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/dvd /media/dvd subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvdrecorder /media/dvdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0


when I did the umount/mount thing it worked on all the drives except the one linux is installed on. It said it was buisy.
 
Old 03-26-2005, 12:51 PM   #10
auximini
Member
 
Registered: Dec 2003
Location: Calgary, AB
Distribution: Any!
Posts: 146

Rep: Reputation: 18
/dev/hda1 /windows/C ntfs ro,users,uid=1000,gid=0,umask=0002,nls=utf8 0 0
/dev/sda1 /windows/E ntfs ro,users,uid=1000,gid=0,umask=0002,nls=utf8 0 0

OK, take out the ro on these lines. That stands for "read only".

Then do a umount on hda1 and sda1 then mount hda1 and sda1.

Also, I should mention that writing to an NTFS drive in Linux is still experimental. SuSE might not even support it.. but we shall see
 
Old 03-26-2005, 03:54 PM   #11
simpleaudio
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks man.
 
Old 03-26-2005, 04:01 PM   #12
simpleaudio
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
What about my linux drive. Why can I only write to it when in root mode?
 
Old 03-26-2005, 04:06 PM   #13
simpleaudio
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
My drive with the linux opperating system on still says access denied to new folder??? It wont let me change the permission on it.
 
Old 03-26-2005, 04:30 PM   #14
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,059

Rep: Reputation: 295Reputation: 295Reputation: 295
In Linux, as a nomral user you can generally only write to your home directory and /tmp (which is for temporary files). This is standard practice in *nix operating systems to make sure you can't hose the system as a normal user. If you did something in your home directory and are getting permissions denied, post the results of "ls -l <filename>", which tells you the permissions.
 
  


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
Access Denied aje Linux - Newbie 7 10-18-2004 08:48 PM
Access denied?? Jaster Linux - Software 9 07-25-2004 07:42 PM
Access is Denied? sKiBa Linux - Newbie 7 06-12-2004 10:28 AM
access denied crossfire_mania Linux - Software 2 01-28-2004 07:14 PM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM


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

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