Allow FTP user to access multiple directories

Hi Experts,

I am in urgent need of your suggestions.

I have below two users in my system:

xyz:x:101:101:XYZ System Account:/export/home/xyz:/bin/bash
abc:x:2009:10:ftp user only:/export/home/abc:/bin/false

Where "xyz" is the crucial one and "abc" is only introduced for FTPing the files.

# uname -a
SunOS hop 1 5.10 Generic_142909-17 sun4v sparc sun4v

two users have their different home directories.

MAIN Requirement : I want to provide �abc� to FTP the files to two subdirectories present inside the home directory of xyz i.e /export/home/xyz. How this can be done.

Thanks.

Hi,

Add user "abc" to group "101" and ensure that group write is on on the directory.

Regards

Dave

1 Like

Hi,

Many thanks for your reply. I have also tried setfacl -m user:abc:rwx /export/home/xyz/install.

getfacl /export/home/xyz/install
# file: /export/home/xyz/install
# owner: xyz
# group: xyz
user::rwx
user:abc:rwx #effective:r-x
group::r-x #effective:r-x
mask:r-x
other:r-x

But still it doesn't work. After looking into it, I think i need to change the mask to rwx.

Will this way also work :frowning: ?

Thanks.