diff options
author | Stuart Herbert <stuart@gentoo.org> | 2003-09-04 16:14:00 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2003-09-04 16:14:00 +0000 |
commit | 1075ce7aadf3836f451ad4d3ea100578cbb99135 (patch) | |
tree | 1c5a54e77d5e18f85fb300fb2e3dc67610b8e0c8 /eclass/nxserver.eclass | |
parent | add ~alpha (diff) | |
download | historical-1075ce7aadf3836f451ad4d3ea100578cbb99135.tar.gz historical-1075ce7aadf3836f451ad4d3ea100578cbb99135.tar.bz2 historical-1075ce7aadf3836f451ad4d3ea100578cbb99135.zip |
Fix for problem of setting ownership before creating the required user
Diffstat (limited to 'eclass/nxserver.eclass')
-rw-r--r-- | eclass/nxserver.eclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/nxserver.eclass b/eclass/nxserver.eclass index ea6bc38dc81f..65c13c565f0c 100644 --- a/eclass/nxserver.eclass +++ b/eclass/nxserver.eclass @@ -71,16 +71,18 @@ nxserver_src_install() { insinto /etc/env.d doins ${FILESDIR}/${PVR}/50nxserver - fowners nx.root /usr/NX/etc/passwd fperms 0600 /usr/NX/etc/passwd - fowners nx:root /usr/NX/nxhome - fowners nx:root /usr/NX/var/sessions } nxserver_pkg_postinst() { einfo "Adding user 'nx' for the NX server" enewuser nx -1 /usr/NX/bin/nxserver /usr/NX/nxhome + einfo "Changing permissions for files under /usr/NX" + chown nx.root /usr/NX/etc/passwd + chown -R nx.root /usr/NX/nxhome + chown -R nx.root /usr/NX/var/sessions + einfo "Generating SSH keys for the 'nx' user" if [ ! -f /usr/NX/etc/users.id_dsa ]; then ssh-keygen -q -t dsa -N '' -f /usr/NX/etc/users.id_dsa |