Hi Ted,
On Mi 02 Okt 2013 02:44:42 CEST, Ted Barnes wrote:
Am trying to launch a script at login to mount an encrypted
partition. I've been trying the option to place a script and/or
commands in /usr/lib/x2go/extensions/post-start.d/scriptname.sh. I
can get this to work, but want to figure out a way to keep the
password for the mount hidden.Q: if I compile the script with shc, can I call a binary using the
/usr/lib/x2go/extensions/post-start.d/ approach? It appears right
now that the compiled script/binary can only be started as root, and
x2go seems to call scripts as the user logging in.Q: alternatively, if I put one script in
/usr/lib/x2go/extensions/post-start.d/ that calls another that
contains the mount command with the password, is there a way to make
the called script callable from the user login but also not
"viewable" by the user. I've tried things like "chmod 711" but the
script's content either remain visible if it executes or the
script's content can't can't be seen but it doesn't execute.
Can't this be handled by PAM (e.g. pam_mount [1]) somehow???
Mike
[1] http://www.novell.com/coolsolutions/feature/15354.html
--
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...