Author Topic: Permision problems  (Read 449 times)

shuiend

  • Member
  • **
  • Posts: 250
  • Kudos: 0
    • http://stuff4fools.topcities.com
Permision problems
« on: 9 October 2002, 06:35 »
when i do "chmod 777 /mnt" it should give all user the right to read and right to all the mnt directories right. i am a bit shakey on all the numbers to so if you could also explain those to.
you know its a bad day when you look more sober then usual

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Permision problems
« Reply #1 on: 9 October 2002, 06:49 »
No, that would only give them permissions to delete empty subdirectories under /mnt. You would also have to change the permissions on the subdirectories themselves.

I can't for the life of me figure out why you would want to do this though.
Someone please remove this account. Thanks...

shuiend

  • Member
  • **
  • Posts: 250
  • Kudos: 0
    • http://stuff4fools.topcities.com
Permision problems
« Reply #2 on: 9 October 2002, 14:57 »
ok i have a better way of explaning it now. My floppy dirve is /mnt/floppy. i want my users to be able to write to the floppy which right now they can't. So how would i change permisions so that they can write to the floppy?
you know its a bad day when you look more sober then usual

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Permision problems
« Reply #3 on: 9 October 2002, 15:07 »
okay, for this, you would need to specify in the /etc/fstab file what permissions you want /mnt/floppy to have. you do this by setting a number of flags (is that the right term? they are options anyway) to tell the system what permissions to give that directory at the time when it mounts it.

To see what your current fstab file looks like, type 'less /etc/fstab' and to change it, you will need to be root and edit /etc/fstab with some text editor. i'd use pico or emacs myself, but whatever you are familiar with.

To find out what options you can specify, do 'man mount' and i think there is probably a 'man fstab' as well.

Specifying the 'umask' value is directly related to your chmod numbers. The difference is that the numver you put after umask is what you take away from 777 to get the actual permission number (christ i am explaining this in all the wrong words!) so if you put umask as 000, it would mean permissions of 777, and if you put umask as 012, it would mean permissions of 765.

somebody else will come along no doubt and answer in more specific terms, but that's the gist. here's a good startoff page about this subject but now you know what to look for, go and google it for more specific answers.

I hope what i said was helpful, i am in a bit of a dithery mood today but i tried to be as useful as i could!
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Permision problems
« Reply #4 on: 9 October 2002, 20:55 »
You have it Calum. In the entry for the floppy mount in /etc/fstab you probably have "default" in your options field. If you do, change that to "umask=000" and when the floppy is mounted it will be mounted with permissions for all to read. If you want users to be able to mount the floppy then use this in your options field on the floppy line:

user,umask=000
Someone please remove this account. Thanks...