You are not logged in.

#1 2010-01-10 05:12:02

atomicpookavirus
Member
Registered: 2009-06-28
Posts: 53

[SOLVED]Permissions on USB HDD

INSTALLING NTFS-3G SOLVED THIS

I'm having trouble setting the permissions on my usb hard disk. Right now I can only access it as root, I'm unsure how to change it.

Right now it looks like this.

dr-x------  1 root   root   8.0K 2009-08-25 16:21 mnt

running chmod gives me the following message

[root@spacecapsule koopdi]# chmod 644 mnt
chmod: changing permissions of `mnt': Read-only file system

Last edited by atomicpookavirus (2010-01-13 07:16:21)

Offline

#2 2010-01-10 05:39:55

brucebertrand
Member
Registered: 2006-07-24
Posts: 52

Re: [SOLVED]Permissions on USB HDD

Make sure your user is in the storage group and have a look at:
http://wiki.archlinux.org/index.php/USB … ormal_user

Offline

#3 2010-01-10 07:16:36

atomicpookavirus
Member
Registered: 2009-06-28
Posts: 53

Re: [SOLVED]Permissions on USB HDD

My user account, koopdi, is a member of the storage group. I am able to mount the drive as root. What's troubling me is that I am unable to read the drive as user koopdi. This means doing silly things like running mplayer as root just to watch a video. Could my problem have anything to do with the drive being formatted ntfs? I am able to read from usb flash drives just fine. I'm a bit troubled and at a loss that running chmod 644 failed to change the permissions. This is weird.

Edit:
Is it possible that my hdd isn't being added to the storage group?

Last edited by atomicpookavirus (2010-01-10 07:17:55)

Offline

#4 2010-01-10 07:20:04

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: [SOLVED]Permissions on USB HDD

Udev or hal or whatever it is which is actually doing the mounting is responsible for assigning permissions.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2010-01-10 07:40:45

atomicpookavirus
Member
Registered: 2009-06-28
Posts: 53

Re: [SOLVED]Permissions on USB HDD

Right now I'm mounting the drive explicitly using the mount command. How do I tell if I'm using udev or hal?

Offline

#6 2010-01-10 12:53:28

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: [SOLVED]Permissions on USB HDD

You aren't using either udev or hal unless it's mounted automatically by your DE or file manager. If you get an error when you try to do it, take a look at http://wiki.archlinux.org/index.php/HAL#Mounting_fails

Edit: you need to comment the line referring to that USB disk in fstab (if you had one) for automounting to work

Last edited by Surgat_ (2010-01-10 12:54:43)

Offline

#7 2010-01-10 17:24:06

atomicpookavirus
Member
Registered: 2009-06-28
Posts: 53

Re: [SOLVED]Permissions on USB HDD

Since I'm mounting the drive by issuing command {sudo mount /dev/sdb1 ~/mnt} can I infer that mount is responsible for assigning permissions to the drive? If so, why can I not change these permissions with chmod?

Offline

#8 2010-01-10 17:27:34

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [SOLVED]Permissions on USB HDD

What type of filesystem is on the drive?  If it's NTFS, for example, you need to install ntfs-3g to mount it read-write.

Offline

#9 2010-01-10 18:20:41

tlvb
Member
From: Sweden
Registered: 2008-10-06
Posts: 297
Website

Re: [SOLVED]Permissions on USB HDD

Do you have a line for it in /etc/fstab? If not, does it help adding a suitable line containing user/users/group among (man mount for details)?


I need a sorted list of all random numbers, so that I can retrieve a suitable one later with a binary search instead of having to iterate through the generation process every time.

Offline

Board footer

Powered by FluxBB