Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14
Thank you zaonline ! It worked ! also just want to know How can we give File/Folder Permissions using commands.... (example authorizing Home folder/windows drives....)...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined! zeneknath's Avatar
    Join Date
    Feb 2010
    Posts
    42

    Thank you zaonline !

    It worked !

    also just want to know How can we give File/Folder Permissions using commands.... (example authorizing Home folder/windows drives....)

  2. #12
    Just Joined!
    Join Date
    Jul 2010
    Posts
    4
    I don't understand what you want to do.

  3. #13
    Just Joined! zeneknath's Avatar
    Join Date
    Feb 2010
    Posts
    42
    Ok ! My Computer is being used by 3 users(people). I know the root password. I do not want the other users to access Windows drives C; D.... if i right click the mounted(drive)-properties-permissions-
    it says owner root cannot change the permissions....
    all the users can access the drives.....
    how to make it locked...not accessiable to others....???

  4. $spacer_open
    $spacer_close
  5. #14
    Just Joined!
    Join Date
    Jul 2010
    Posts
    4
    Alright! Earlier you added a line to /etc/fstab, it was /dev/sda1 /media/sda1 ntfs-3g defaults,umask=0 0 0
    Look at "umask" on that line. It says umask=0, it means permissions to read and write and execute is set for owner, group and the other users. So what you have to do, i think is to umount the drives you want to change.

    Open /etc/fstab
    Code:
    sudo gedit /etc/fstab
    in gnome
    and change the umask value to umask=0077. The line will look like:
    /dev/sda1 /media/sda1 ntfs-3g defaults,umask=0077 0 0
    and after that, SAVE the file and mount the volume again and check the permissions. If it dosen't work then try with umask=077 (3 digits instead)

    This way, only root have read and write permissions, no group and no others.
    if you want to allow the root group also, then umask=0007

    Good Luck!

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •