Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

setting group permissions in reiserfs

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
reaz82
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Fri Mar 14, 2003 8:25 pm
Location: Austin, Texas

setting group permissions in reiserfs

  • Quote

Post by reaz82 » Sat Feb 04, 2006 9:14 pm

I am trying to mount a few partitions as readable/writeable by all members of the group "users".

The line in my fstab is as follows:

Code: Select all

/dev/hda2               /mnt/audio      reiserfs        notail,noatime,gid=users    0 0
However, when I try to mount using this command:

Code: Select all

mount /mnt/audio
I get the following error:

Code: Select all


mount: wrong fs type, bad option, bad superblock on /dev/hda2,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
if i do a "dmesg | tail" as per their instruction I get the following:

ReiserFS: hda2: warning: unknown mount option "umask=0000"
ReiserFS: hda2: warning: unknown mount option "umask=0000"
ReiserFS: hda2: warning: unknown mount option "gid=100"
ReiserFS: hda2: warning: unknown mount option "gid=100"
ReiserFS: hda2: warning: unknown mount option "gid=100"
ReiserFS: hda2: warning: unknown mount option "gid=100"


As you can see in italics I also had the same issue with the umask option. And I bolded the part that is
an easier method to achieve the same results but that does not work as well. However, when I remove
the gid or umask option the partitions are mounted properly with the undesired permissions ofcourse.

I'm not sure where I've gone wrong but I hope someone can help me out.
Last edited by reaz82 on Mon Feb 06, 2006 4:05 am, edited 2 times in total.
Top
gentleman
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 140
Joined: Fri Dec 02, 2005 9:02 pm
Location: Germany, Paderborn

  • Quote

Post by gentleman » Sat Feb 04, 2006 9:40 pm

Well the error says that gid=?? is an unknown option and so does the mount manual, too. By the way: users is no id, but a name. I wonder if that might be a problem, too. As a solution for you problem just do it like that:

Code: Select all

/dev/hda2               /mnt/audio      reiserfs        notail,noatime,users    0 0
That should work.
Top
reaz82
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Fri Mar 14, 2003 8:25 pm
Location: Austin, Texas

  • Quote

Post by reaz82 » Sun Feb 05, 2006 6:34 am

gentleman wrote:Well the error says that gid=?? is an unknown option and so does the mount manual, too. By the way: users is no id, but a name. I wonder if that might be a problem, too. As a solution for you problem just do it like that:

Code: Select all

/dev/hda2               /mnt/audio      reiserfs        notail,noatime,users    0 0
That should work.
users translates to id number 100 on my system.

I tried this other method and it only grants read/execute access and not write access. I need both.
Top
reaz82
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Fri Mar 14, 2003 8:25 pm
Location: Austin, Texas

  • Quote

Post by reaz82 » Sun Feb 05, 2006 3:25 pm

anyone?

I'd like to grant read/write/execute permissions to the user group for that partition. So far I can give read/execute writes.
Top
sirtalon42
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Tue Aug 09, 2005 10:04 pm

  • Quote

Post by sirtalon42 » Sun Feb 05, 2006 9:57 pm

What it seems like to me is that since reiserfs supports the normal user/group/other permissions it doesn't also accept gid/uid (since that would screw up the permissions). What probably would work is mount it like normal (i.e. without gid or uid), then change the owner to root (or some other user), and group "users". If theres a directory tree on it you may also need to chown all the subdirectories and files. After you do that change the permissions to give the group read/write access.

I think 'gid' and 'uid' are only for filesystems that aren't meant for multiuser systems (like iso9660 and vfat), or ones where the permission systems are incompatible with Linux (like ntfs).
Top
ctford0
l33t
l33t
User avatar
Posts: 774
Joined: Fri Oct 25, 2002 4:09 pm
Location: Lexington, KY,USA

  • Quote

Post by ctford0 » Sun Feb 05, 2006 10:06 pm

You might also want to add sticky to the group of the parent directory so that any file created will be read/write to the group.

chris
Top
reaz82
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Fri Mar 14, 2003 8:25 pm
Location: Austin, Texas

  • Quote

Post by reaz82 » Mon Feb 06, 2006 3:03 am

sirtalon42 wrote:What it seems like to me is that since reiserfs supports the normal user/group/other permissions it doesn't also accept gid/uid (since that would screw up the permissions). What probably would work is mount it like normal (i.e. without gid or uid), then change the owner to root (or some other user), and group "users". If theres a directory tree on it you may also need to chown all the subdirectories and files. After you do that change the permissions to give the group read/write access.

I think 'gid' and 'uid' are only for filesystems that aren't meant for multiuser systems (like iso9660 and vfat), or ones where the permission systems are incompatible with Linux (like ntfs).
Thanks a lot. This makes sense. I'll give it a try.
Top
reaz82
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Fri Mar 14, 2003 8:25 pm
Location: Austin, Texas

  • Quote

Post by reaz82 » Mon Feb 06, 2006 3:08 am

ctford0 wrote:You might also want to add sticky to the group of the parent directory so that any file created will be read/write to the group.

chris
how do you do this? I am not sure which command I can use.. chmod?
Top
ctford0
l33t
l33t
User avatar
Posts: 774
Joined: Fri Oct 25, 2002 4:09 pm
Location: Lexington, KY,USA

  • Quote

Post by ctford0 » Mon Feb 06, 2006 3:31 am

reaz82 wrote:
how do you do this? I am not sure which command I can use.. chmod?
From man chmod:

The letters `rwxXstugo' select the new permissions for the affected users: read (r), write (w),
execute (or access for directories) (x), execute only if the file is a directory or already has
execute permission for some user (X), set user or group ID on execution (s), sticky bit (t), the
permissions that the user who owns the file currently has for it (u), the permissions that other
users in the file's group have for it (g), and the permissions that other users not in the
file's group have for it (o). (Thus, `chmod g-s file' removes the set-group-ID bit, `chmod ug+s
file' sets both the set-user-ID and set-group-ID bits, while `chmod o+s file' does nothing.)


The name of the `sticky bit' derives from the original meaning: keep program text on swap
device. These days, when set for a directory, it means that only the owner of the file and the
owner of that directory may remove the file from that directory. (This is commonly used on
directories like /tmp that have general write permission.)


I think you'll want to do:

Code: Select all

chmod g+s somedir
to set the sticky for that directory.

chris
Top
reaz82
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Fri Mar 14, 2003 8:25 pm
Location: Austin, Texas

  • Quote

Post by reaz82 » Mon Feb 06, 2006 4:01 am

nope. it's not working. I made a mistake. the chmod g+s command does nothing as far as making all the directories/files writeable.
Top
ctford0
l33t
l33t
User avatar
Posts: 774
Joined: Fri Oct 25, 2002 4:09 pm
Location: Lexington, KY,USA

  • Quote

Post by ctford0 » Tue Feb 07, 2006 4:00 am

reaz82 wrote:nope. it's not working. I made a mistake. the chmod g+s command does nothing as far as making all the directories/files writeable.
1. Can you post the permissons on the directory that you are mounting?

2. All the sticky bit does is ensure that all the files that are placed in the folder have the same permissions so everyone can read and write to them that are in the group that has access to the directory.

chris
Top
reaz82
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Fri Mar 14, 2003 8:25 pm
Location: Austin, Texas

  • Quote

Post by reaz82 » Sat Feb 11, 2006 12:57 am

ctford0 wrote:
reaz82 wrote:nope. it's not working. I made a mistake. the chmod g+s command does nothing as far as making all the directories/files writeable.
1. Can you post the permissons on the directory that you are mounting?

2. All the sticky bit does is ensure that all the files that are placed in the folder have the same permissions so everyone can read and write to them that are in the group that has access to the directory.

chris
I see. It's working now. I set the permissions and things look fine now. Thanks.
Top
Post Reply

12 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic