Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    FTP And Permission Problem


    I Installed FTP Daemon On My CentOS VPS
    And Created FTP User For That....

    Now The Scenario Is,

    Everyday root User Creates Some Directories And FTP User Need To Be Able To Read/Write In Those Directories.

    But I Am Getting Permission Denied.

    root Has To Chown Those Directories, So That FTP User Can Read/Write Them...
    But Everyday So Many New Directories Are Created.

    Is There A Way FTP User Can Read/Write Without root Having To Chown Them,
    Like, What If I Add FTP User To The "Group" root...
    Or Something Like That, Will That Solve My Problem


  2. #2


    thanks for sharing information about servers

  3. #3
    I Did Not Posted To Share Information...

    I Posted To Ask A Question...

    Did You Understood My Question... ??

  4. $spacer_open
  5. #4
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Western Kentucky
    you have to appease the UNIX permissions, whether it be through chown or doing a chmod 777 and make the permissions wide open, but that may not be safe.
    linux user # 503963

  6. #5

    There is also another way to set permission, ver simmilar to NTFS in windows.
    its called ACL (or FACL).

    there are 2 commands that do that:


    getfacl - get file access control lists
    For each file, getfacl displays the file name, owner, the group, and the Access Control List (ACL). If a directory has a default ACL, getfacl also displays the default ACL. Non-directories cannot have default ACLs.
    If getfacl is used on a file system that does not support ACLs, getfacl displays the access permissions defined by the traditional file mode permission bits.

    setfacl - set file access control lists
    This utility sets Access Control Lists (ACLs) of files and directories. On the command line, a sequence of commands is followed by a sequence of files (which in turn can be followed by another sequence of commands, ...).

    getfacl /testdir - will display ACL info on testdir

    setfacl -Rd -m u:myuser:rwx /testdir - will allow myuser to
    read/write/exec in /testdir regardless of unix permissions.
    This will also be inherited(-R / recursive switch, -d to modify default ACL on top dir) in directories below /testdir.

    Also, notice "+" symbol at permissions, which indicate that ACL has been set

    [myuser@localhost testdir]$ ls -l / | grep testdir
    drwxrwxr-x+ 2 root root 4096 Jul 11 10:12 testdir

Posting Permissions

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