Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
To the entire /var directory ??? .. probably not ideal, can you restrict to say /var/ftp or something ? .. if you cant it may be better to use an acl to give the user access
To the entire /var directory ??? .. probably not ideal, can you restrict to say /var/ftp or something ? .. if you cant it may be better to use an acl to give the user access
If not the /var directory, then the /var/www
It's for my own usage, for setting up my webserver at home, etc. After i'm done transfering files and setting up, etc i'll disable the access and the ftp account.
But for now, i can't ftp in to my box and accomplish what I want and its frustrating me.
Basically you can use acl's to provide access to files and directories without changing the base UGO permissions
eg.
Code:
[me@xxxxxx tmp]$ mkdir -p blah/test/test2/crapola
[me@xxxxxx tmp]$ ls -ld blah/
drwxrwxr-x. 3 me me 4096 Jan 11 23:11 blah/
[me@xxxxxx tmp]$ getfacl blah
# file: blah
# owner: me
# group: me
user::rwx
group::rwx
other::r-x
[me@xxxxxx tmp]$ setfacl -Rm u:testuser:rwx blah
[me@xxxxxx tmp]$ getfacl blah
# file: blah
# owner: me
# group: me
user::rwx
user:testuser:rwx
group::rwx
mask::rwx
other::r-x
[me@xxxxxx tmp]$ getfacl blah/test
# file: blah/test
# owner: me
# group: me
user::rwx
user:testuser:rwx
group::rwx
mask::rwx
other::r-x
The '-m' argument is modify and the '-R' means recursive, to remove an acl use '-x' or '-b' to remove all extended acl's. So to provide access to /var/www for user 'user', you could run 'setfacl -Rm u:user:rwx /var/www' and an 'ls -ld /var/www' wouldn't look any different, the same UGO permissions would be present.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.