Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
öffentlicher Benutzer mit beschränkten Rechten [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
powerflo
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2007
Posts: 99

PostPosted: Sun Jul 29, 2007 12:06 pm    Post subject: öffentlicher Benutzer mit beschränkten Rechten [solved] Reply with quote

Hallo zusammen,
ist es möglich einen Benutzer zu erstellen der nur eines kann: ein bestimmtes Programm ausführen?

Ich möchte Bekannten die Möglichkeit geben sich auf meinem PC daheim einzuloggen (SSH) und ein Programm auszuführen (liegt dann im Home-Verzeichnis des Users). Aus Sicherheitsgründen sollte der User eben wirklich nichts anderes machen dürfen als dieses Programm auszuführen (auf der Konsole).

Ist so etwas überhaupt realisierbar?


Gruß powerflo


Last edited by powerflo on Sun Jul 29, 2007 8:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Sun Jul 29, 2007 12:55 pm    Post subject: Reply with quote

Wenn du einen Nuzter erstellt, der dieses Programm als Shell-Eintrag in der /etc/passwd hat und er sich mit ssh -c programm einloggt, müsste es eigentlich klappen.
Versuch's einfach mal
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
powerflo
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2007
Posts: 99

PostPosted: Sun Jul 29, 2007 7:59 pm    Post subject: Reply with quote

Danke für die schnelle Antwort. So funktioniert es :D
Wenn ich allerdings die -c Option verwende dann kommt die Meldung:
Code:
Unknown cipher type 'programm'


Aber ohne gehts hervorragend.

powerflo
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Sun Jul 29, 2007 8:09 pm    Post subject: Reply with quote

achso, das mit dem c-Flag hab ich verpeilt.
Gern geschehen. Haust du noch ein "[solved]" an den Titel des Threads?

Tschö mit ö
Manuel
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Mon Jul 30, 2007 6:00 am    Post subject: Reply with quote

Alternativ in die .ssh/authorized_keys wenn key-basierte Authentifizierung genutzt wird:
Code:
command="/usr/bin/cvs server" ssh-dss ...

_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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