Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Script vid inloggning
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
TheCableMan
n00b
n00b


Joined: 19 Nov 2004
Posts: 32

PostPosted: Sat May 07, 2005 10:24 am    Post subject: Script vid inloggning Reply with quote

Kan man lägga in så att det körs ett script när en viss användare loggar in. Vill att vid inloggning ska hemmappen mountas via samba mount (hemmapparna ligger på en server) och vid utloggning ska de avmonteras. Inloggningen är grafiskt med GDM med fluxbox som wm.
Back to top
View user's profile Send private message
30726
Veteran
Veteran


Joined: 24 Sep 2003
Posts: 1501

PostPosted: Sun May 08, 2005 8:16 pm    Post subject: Reply with quote

Placera följande i /etc/profile.
Code:
if [ "`/bin/whoami`" = 'användarnamn' ]; then
...kod
fi
Back to top
View user's profile Send private message
abel7
n00b
n00b


Joined: 16 Apr 2004
Posts: 27
Location: Göteborg, Sweden

PostPosted: Tue May 10, 2005 5:37 am    Post subject: Reply with quote

När man kör fluxbox så finns det en fil som heter ~/.fluxbox/startup där du kan skriva vad som ska köras när du loggar in.
Skriv namnet på scriptet där så borde det funka.
_________________
Abel
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum