LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-15-2010, 02:52 PM   #1
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
problem with group permissions


Hi, I need read-write-execute permissions over a logic device, by default the user and group owners looks like this:
Code:
brw-rws--- 1 root disk 254, 0 210-11-15 12:32 /dev/mapper/usbdisk
So, i want to access it using a different user than root, so I add my own user to be part of the "disk" group but when I try to read-write the device I can't.

if it's useful, usbdisk is mounted like this:
Code:
mount /dev/mapper/usbdisk /mydocs
my question is: what permissions should I set to the group to allow read-write-execute for all users of the group "disk"?

regards
 
Old 11-15-2010, 03:13 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You have got to log off and log back on for the group membership to take effect.

Check the permissions on the mount point after the usbdisk is mounted. You may have to change the permissions there as well.

Code:
mount /dev/mapper/usbdisk /mydocs
ls -ld /mydocs
chgrp disk /mydocs
chmod g=rwx /mydocs

Last edited by stress_junkie; 11-15-2010 at 03:17 PM.
 
  


Reply



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
Secondary group users need to change the file permissions of primary group files? sunnybmv Linux - Newbie 3 12-10-2009 04:57 PM
Group permissions / FTP problem underlay Linux - Server 6 03-25-2008 03:15 PM
Group permissions / ftp problem underlay Linux - Networking 0 03-24-2008 04:21 AM
Permissions problem - setting up dirs for root + group access ericcarlson Red Hat 1 03-26-2006 03:03 AM
group permissions problem ForumKid Linux - General 5 12-02-2002 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration