Announcement

Collapse
No announcement yet.

[Solved] Changing File Permissions Outside Home Directory

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Solved] Changing File Permissions Outside Home Directory

    If I have a file in my Home directory I can modify its permissions no problem-o.

    But, when I try to modify the permissions of a file located on a separate NTFS partition I can't seem to get 'er working. No errors are being returned so not particularly sure what Linux wants me to do.

    Here is my file structure:

    /media/Shared/Source_Code/Cross_Platform/a.out

    Code:
    /media/
    owner: root
    drwxr-xr-x
    Next 3 levels have identical permissions
    Code:
    /Shared/Source_Code/Cross_Platform
    owner: chris
    drwx-----
    Code:
    a.out
    owner: chris
    -rw-----
    Specifically just trying to give myself executable permissions on a.out

    Following two commands execute fine, but the file permission doesn't change.
    Code:
    chmod u=rwx a.out
    chmod 700 a.out
    8)

    #2
    Re: Changing File Permissions Outside Home Directory

    For non-posix filesystems (like ntfs), you can't change file permissions individually (or when they are mounted), as these filesystems don't support posix style permissions.

    For ntfs, you can change permissions at mount time by using umask (files and directories), dmask (directories) and fmask (files) mount options. If you have an /etc/fstab line for your ntfs filesystem, you could add the option there, examples:
    1. fmask=0077 (all files on the ntfs filesystem will have rwx --- --- permissions once mounted)
    2. umask=0000 (all files and directories will have rwx rwx rwx permissions once mounted)

    Comment


      #3
      Re: Changing File Permissions Outside Home Directory

      Aye that worked beautifully

      Thanks!

      Comment

      Working...
      X