I've created another ssh/sftp/ftp user. How do I grant them permissions to my application? asked 19 Sep '12, 13:15 bmeyer71 ♦♦ |
We have detailed documentation to help you add permissions to your extra users here. Note: only tested on 64bit CentOS. For those that want an easier way, here is a quick script that will perform those steps for you.
Copy and paste that into a file called permissions.sh You can then enable the script to be executable using: To use, you just run:
answered 19 Sep '12, 13:26 bmeyer71 ♦♦ |
Here is an alternative to the previous permissions script. Note: Again, only tested on 64bit CentOS.
Copy and paste that into a file called permissions.sh You can then enable the script to be executable using: To use, you just run: ./permissions.sh grant joe $HOME/webapps/django This will also let you grant permissions to a subdirectory. eg: It will grant access to the parent directories of dir for navigational purposes only and read,write,execute to the dir directory as described in this community post. answered 22 Sep '12, 21:34 bmeyer71 ♦♦ Thanks, I tried it and it worked. But PLEASE add instructions for others to change PRIMARY_USER=
(24 Jan '13, 02:47)
dhigby
The code is actually equivalent to
(24 Jan '13, 02:54)
ryans ♦♦
why would I be getting a
on both versions of the permission script ? The problem that I'm trying to solve is that after running all the acl commands, I can ls and modify the contents of the folder if I refer to it with an absolute path, but if I create a link to that folder then I get a permission denied when I try to cd . FIXED: the script contained a -p instead of a -P
(18 Nov '13, 03:28)
alcipone
The lowercase -p is only available on the newer version of getfacl (ACL) which is on the CentOS6 64bit servers. This is why you got an error with that command. I've updated the posts to mention that as well.
(18 Nov '13, 10:50)
bmeyer71 ♦♦
I tried to add this script and run it in the directory above 'webapps'. All I see is the follwoing error: 'This script currently only works with /home/username/webapps'
(20 Aug '14, 17:38)
xpostudio4
The script as written is designed to work for one application not for your Home directory. You would need to modify the script to work in your home directory.
(20 Aug '14, 18:42)
aaront ♦♦
showing 5 of 6
show 1 more comments
|
Step by step granting access to specific FTP users (secondary-username) and landing access to his specific application directory:
answered 28 Mar '13, 17:35 ahmadie thaha |
why would I be getting a
on both versions of the permission script ? The problem that I'm trying to solve is that after running all the acl commands, I can ls and modify the contents of the folder if I refer to it with an absolute path, but if I create a link to that folder then I get a permission denied when I try to cd . answered 18 Nov '13, 03:27 alcipone |