WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   Login verhindern (http://www.wcm.at/forum/showthread.php?t=66130)

SNo0py 12.08.2002 09:28

Login verhindern
 
Guten Morgen allerseits,

eine (wahrscheinlich wieder sehr einfach zu lösendes) Problem von mir:

Ich möchte ein paar Samba-User zur Gruppe smbuser (existiert schon) hinzufügen. Laut smb.conf haben diese User dann Schreibrechte, der User nobody hat Leserechte auf manche Freigaben.

Wie schaffe ich es aber, dass sich die neu angelegten User nicht am System anmelden können (lokal oder via SSH)?

Sloter 12.08.2002 09:44

In der passwd die Shell wegnehmen...in der ssh.config den User aussperren...

Sloter

SNo0py 12.08.2002 09:59

Danke Sloter, ich wusste ja, dass es sehr, sehr einfach ist ;)

valo 12.08.2002 11:15

als shell kannst auch /sbin/nologin verwenden ;)

aus der man page:

Code:

NAME
    nologin - politely refuse a login

SYNOPSIS
    nologin

DESCRIPTION
    nologin displays a message that an account is not available and exits
    non-zero.  It is intended as a replacement shell field for accounts that
    have been disabled.

    If the file /etc/nologin.txt exists, nologin displays its contents to the
    user instead of the default message.


MoSKiTo 13.08.2002 21:30

...oder passwd -l username verwenden.

-l This option is used to lock the specified account and it is available to root only. The locking is performed by rendering the encrypted password into an invalid string (by prefixing the encrypted string with an !).

SNo0py 14.08.2002 09:25

Danke an alle,

ich hab jetzt /sbin/nologin verwendet und es funktioniert eigentlich alles (was logins betrifft ;)), ansonsten gibt es klarerweise noch ein paar Problemchen, aber das sind andere Threads ;)

thx


Alle Zeitangaben in WEZ +2. Es ist jetzt 08:05 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag