hi all,

im reading this guide -

https://access.redhat.com/articles/1374633

im reading under the topic “RHEL 7 via socket in chroot”

atm my sftp logs appear here so its all working correctly - “/var/log/secure” and i can see what user has logged in and what directory/file they have opened/closed

now i want to make a “/var/log/sftp.log” but im struggling

input(type=“imuxsock” HostName=“user” Socket=“/chroots/user/dev/log” CreatePath=“on”) if $fromhost == ‘user’ then /var/log/sftp.log & stop

atm my users i create there chroot directory like so - “/mnt/sftp/ftp/username/data”

username - i have multiple usernames so what do i put here “%u”?

the users own the “data folder” they dont own the username folder, so in the data folder they can upload files folders

hope im making sense and thanks

rob

8 Spice ups

Use the man chown to see the man page for chown.

/home # for i in *; do chown -R $i:$i /home/$i; done

Use that to script the ownership in bulk.

1 Spice up