[X2Go-User] Q: regarding calling script or binary on login

Ted Barnes madogdevelopment at gmail.com
Wed Oct 2 02:44:42 CEST 2013


Hi All:

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.

Any help appreciated - thanks!



More information about the x2go-user mailing list