Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd April 2006, 04:49 AM
shawnrgr's Avatar
shawnrgr Offline
Registered User
 
Join Date: Apr 2006
Age: 30
Posts: 107
Question Need some help with permissions...

I managed to follow a guide to allow core5 to read my ntfs usb hd. It works but only if i login as the root. It wont let me access it under my normal user login. How can I change the permissions to allow me to access it under any user?
Reply With Quote
  #2  
Old 3rd April 2006, 05:01 AM
twiistedkaos Offline
Registered User
 
Join Date: Feb 2006
Posts: 347
Are you using fstab to mount them?

Edit if you are simply do somethign like this:

Code:
/dev/sda5                 /mnt/NTFS                ntfs       uid=500,defaults,auto      0 0
Basically all you need to add is the uid=500 part to your mounting line. 500 being your user id, in most cases it's 500

Hope this helps.
__________________
twiistedkaos@gmail.com Registered linux user #412697
- Fedora Core 5
- CPU: INTEL PENTIUM D/ 820/ 3.0GHz
- CD-ROM: Nec DVD-RW ND
-----------------Samsung DVD-ROM SD
- HDD Space: 260GB
- RAM: 1GB
- Sound: Audigy 4

- Video: Nvidia GeForce 5200FX

Last edited by twiistedkaos; 3rd April 2006 at 05:08 AM.
Reply With Quote
  #3  
Old 3rd April 2006, 05:40 AM
shawnrgr's Avatar
shawnrgr Offline
Registered User
 
Join Date: Apr 2006
Age: 30
Posts: 107
Im just plugging in the usb and fedora loads it... I'm new to linux so I'm not quite sure what you saying.
Reply With Quote
  #4  
Old 3rd April 2006, 09:02 AM
solarisman Offline
Registered User
 
Join Date: Apr 2006
Posts: 73
what it means is you may have to explicitly set the permissions in fstab.
One question: is the usb drive plugged in when you boot the PC or after you login and gain the console? By default, devices discovered on the usb bus during boot are owned by root.

Enter the command "cat /etc/fstab" in a terminal window (as root).
Look for entries beginning with '/media'. You should see floppy and cdrom,
if you have one. Do you see an entry like '/media/usbdisk' or equivalent?

If so, scan across the line and check the mount type and permissions, and see
if it ends with the word "managed". If this is the case, then you should edit
/etc/fstab and include the line provided by twiistedkaos, above.

BTW, do you have ntfs support installed? It's not part of the stock distro
Reply With Quote
  #5  
Old 3rd April 2006, 01:24 PM
shawnrgr's Avatar
shawnrgr Offline
Registered User
 
Join Date: Apr 2006
Age: 30
Posts: 107
Yes, I figured out how to enable ntfs support so I am able to read the drive. And no, I'm plugging the device in after fedora 5 boots up and i'm logged in. If i cant get this to work... Could I copy the contents to my main hd, format the usbdrive from fedora...? Would that format it with the correct file system? Would I have permission problems then?

Another thing... Even through I can access the drive from root and copy and excecute files... I wont let me delete..
Reply With Quote
  #6  
Old 3rd April 2006, 02:29 PM
shawnrgr's Avatar
shawnrgr Offline
Registered User
 
Join Date: Apr 2006
Age: 30
Posts: 107
This is what my fstab looks like... I don't see anything like /dev/sda1.... I'm still a little confused but I'm getting there... What do I have to edit... or should I add that line?
Code:
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
Reply With Quote
  #7  
Old 3rd April 2006, 04:52 PM
Seehund's Avatar
Seehund Offline
Registered User
 
Join Date: May 2004
Location: Shvedskaya SSR
Age: 38
Posts: 89
Quote:
Originally Posted by shawnrgr
This is what my fstab looks like... I don't see anything like /dev/sda1.... I'm still a little confused but I'm getting there... What do I have to edit... or should I add that line?
You should add the line.

Though it's likely, the partition is not necessarily /dev/sda1 for you.
First run "fdisk -l" as root to see where your partitions and the one you want to mount are located.
__________________
Have you helped saving AmigaOS and a free PPC hardware market today?
Reply With Quote
  #8  
Old 6th April 2006, 08:44 AM
solarisman Offline
Registered User
 
Join Date: Apr 2006
Posts: 73
Hi shawnrgr,

have you figured it out yet? if not, try adding this line to your "/etc/fstab" file:

/dev/sda1 /mnt/NTFS ntfs rw,umask=0002,uid=500,gid=500 0 0

this gives you read/write access to the USB drive. If you want read-only access, change rw to r, and umask to 0222

Good luck!
Reply With Quote
  #9  
Old 11th April 2006, 01:35 PM
shawnrgr's Avatar
shawnrgr Offline
Registered User
 
Join Date: Apr 2006
Age: 30
Posts: 107
Yes i have.. thank you guys. I transfered everything to my laptop hd the used fdisk & mkfs and got it working.
__________________
compaq presario r3000 laptop
cpu: amd athlon(tm) 64 processor 3700+
ram: 1035428 kB
video: nvidia corp nv17 [geforce4 420 go 32m]
display: LCD 19in Widescreen [Rosewill]
hdrive: toshiba mk8025gas [80gig]
os: fedora core 5 - x86
Reply With Quote
Reply

Tags
permissions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissions mwinn22 Using Fedora 5 1st March 2009 06:21 PM
NFS permissions newmab Using Fedora 3 2nd July 2007 06:02 AM
httpd permissions, hda1 User permissions, Cake? Fault Using Fedora 7 1st August 2006 07:12 PM
SSH permissions desipher Servers & Networking 2 7th September 2005 03:56 PM


Current GMT-time: 12:56 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat