WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Linux, UNIX, Open Source

Linux, UNIX, Open Source Rat & Tat bei Problemen und Fragen rund um GNU/Linux, BSD und sonstige UNIXe

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 12.08.2002, 09:28   #1
SNo0py
Inventar
 
Registriert seit: 08.02.2000
Beiträge: 1.696


Standard 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)?
____________________________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
SNo0py ist offline   Mit Zitat antworten
Alt 12.08.2002, 09:44   #2
Sloter
Inventar
 
Registriert seit: 05.01.2000
Beiträge: 3.812


Standard

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

Sloter
Sloter ist offline   Mit Zitat antworten
Alt 12.08.2002, 09:59   #3
SNo0py
Inventar
 
Registriert seit: 08.02.2000
Beiträge: 1.696


Standard

Danke Sloter, ich wusste ja, dass es sehr, sehr einfach ist
____________________________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
SNo0py ist offline   Mit Zitat antworten
Alt 12.08.2002, 11:15   #4
valo
Inventar
 
Registriert seit: 15.11.2000
Alter: 43
Beiträge: 7.684


Standard

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.
____________________________________
Yeah, yo mama dresses you funny and you need a mouse to delete files.
Jabber-ID: valo [at] cargal \'.\' org

Infected Mushroom and Barri Saharof - Live in Eilat Desert Israel 24-10-2002
A*S*Y*S - SSL-Pickup 21-10-2002
Dj Tiesto - Forbidden Paradise 8/Mystic Swamp
valo ist offline   Mit Zitat antworten
Alt 13.08.2002, 21:30   #5
MoSKiTo
Master
 
Registriert seit: 20.11.2000
Beiträge: 592


Standard

...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 !).
____________________________________
standard nerd
MoSKiTo ist offline   Mit Zitat antworten
Alt 14.08.2002, 09:25   #6
SNo0py
Inventar
 
Registriert seit: 08.02.2000
Beiträge: 1.696


Standard

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
____________________________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
SNo0py ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 01:35 Uhr.


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