Results 1 to 5 of 5
Hi...
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 ...
- 06-30-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 3
FTP And Permission Problem
Hi...
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
Thanks
- 07-01-2010 #2Just Joined!
- Join Date
- Jul 2010
- Posts
- 1
thanks for sharing information about servers
- 07-04-2010 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 3
@freshcrop
I Did Not Posted To Share Information...
I Posted To Ask A Question...
Did You Understood My Question... ??
- 07-08-2010 #4
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
- 07-11-2010 #5Just Joined!
- Join Date
- Feb 2009
- Posts
- 8
Hi
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
setfacl
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, ...).
examples:
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


Reply With Quote