LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-26-2009, 09:33 AM   #1
Paraply
Member
 
Registered: Jun 2007
Posts: 53

Rep: Reputation: 15
User HDD Write Permission??


I have added a harddisk to my desktop system, but I am not allowed to write to it as user.

Here is the output of 'id' and 'groups' from userarea and root, respectively:

$ id
uid=1000(myself) gid=1000(myself) groups=1000(myself),6(disk),7(lp),10(wheel),21(locate),81(dbus),82(hal),91(video),92(audio),93(optic al),94(floppy),95(storage),98(power),100(users),102(policykit)

# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),19(log)

$ groups
disk lp wheel locate dbus hal video audio optical floppy storage power users policykit myself

# groups
root bin daemon sys adm disk wheel log

All my disks have

User: root
Group: disk

I had thought that as long as the user (myself) belonged to the group 'disk', I, as user, would have full/all permissions. And I do, for the disk which was present during my Linux installation (Arch Linux), but not for the newer disk. I have the newer disk commented out in 'fstab', but that shouldn't make a difference? Otherwise all settings look, to me, to be the same for all disks.

What am I missing?
 
Old 12-26-2009, 03:55 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,764

Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
1) With the new disk commented out in fstab, the new disk will not mount on boot (assuming you have partitioned it). If it's not mounted, you can't write to it.

2) You don't give any indication that you have partitioned the new disk, and which filesystem you chose for it.
 
Old 12-26-2009, 05:04 PM   #3
Paraply
Member
 
Registered: Jun 2007
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bigrigdriver View Post
1) With the new disk commented out in fstab, the new disk will not mount on boot (assuming you have partitioned it). If it's not mounted, you can't write to it.

2) You don't give any indication that you have partitioned the new disk, and which filesystem you chose for it.
Points taken.
I can mount and read the files on the disk using e.g. Dolphin, but I don't have write permission as user. From the command line I have full access/permissions as root.

The filesystem is JFS. The disk is 1.5 TB SATA, not partitioned. I also use JFS on my /home and /data partitions, on another (ATA) disk, without problems, and I use JFS on an unpartitioned 1.0 TB USB external disk without permission problems.

The size and the Serial ATA implementation are the only differences I can think of from the disks I am using or have used before...

Last edited by Paraply; 12-26-2009 at 05:18 PM.
 
  


Reply

Tags
harddisk, permissions


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup write permission for a user veeramani Linux - Security 3 03-21-2007 08:21 AM
Mounted a filesystem as root.How does one give write-permission to a user? Mr.DeVillie Linux - Software 4 02-08-2006 07:20 AM
Shared partition and user write permission dashnaam Linux - General 3 07-10-2005 01:22 PM
No write permission for /home/user/... payasam Mandriva 2 12-24-2004 12:33 PM
Sharing a directory with a regular user (with write permission) Ironica Linux - Newbie 6 05-31-2004 11:27 AM


All times are GMT -5. The time now is 09:16 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