> is there a way to configure the ftp server in Solaris in such a way > that users be automatically chdir-ed to their home directory > and that they see it as / ? I don't care if ftpd actually calls > chroot() or not. > I tried to set some option in /etc/ftpd/ftpaccess, but with > miserable results (I find ftpaccess(4) quite unclear) . > > I know that proftpd or vsftpd would do it, but I'm trying to minimize > the installation of third party packages.
Nico, You can do this by adding the following to the ftpaccess file ==== # Restrict all users to there home directory guestuser * # Give the following user full access realuser andrew andrew # Give the following group full access realgroup staff staff ===== make sure you restart ftp # svcadm restart svc:/network/ftp:default There is one bad side effect [which I think is a bug]. You may start seeing the following in the log files (/var/adm/messages) ftpd: open_module: stat(/usr/lib/security/pam_unix_session.so.1) failed: No such file or directory ftpd: load_modules: can not open module /usr/lib/security/pam_unix_session.so.1 and "last" command will not show logout time. This is because you have chroot the account and "/usr/lib/security/pam_unix_session.so.1" does not exist under the users home directory. Hope it helps Andrew _______________________________________________ opensolaris-discuss mailing list [email protected]
