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

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Wed Oct 2 08:48:00 CEST 2013


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 at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Digitale_PGP_Signatur
Type: application/pgp-signature
Size: 853 bytes
Desc: not available
URL: <http://lists.x2go.org/pipermail/x2go-user/attachments/20131002/5c70980a/attachment.pgp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 7251 bytes
Desc: ?ffentlicher PGP-Schl?ssel
URL: <http://lists.x2go.org/pipermail/x2go-user/attachments/20131002/5c70980a/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.x2go.org/pipermail/x2go-user/attachments/20131002/5c70980a/attachment-0001.pgp>


More information about the x2go-user mailing list