[Linux] User Account Limiteren

Pagina: 1
Acties:
  • 40 views sinds 30-01-2008

  • Xu
  • Registratie: Maart 2001
  • Laatst online: 29-04-2025
Kan je de user account ook limiteren tot 2 of zelfs 1 connectie per keer per user?

vb. Kees logt in op een server via ssh, hij kan niet nog een keer inloggen.

Is dat in te stellen met Bash? of met SSH??

[AMD XP 2400@2.0GhZ | Asus A7V8X-X | 512 DDR-RAM | Sapphire Ati Radeon 9800 Pro 128 MB | 80GB Maxtor 5400] && [AMD DURON 800@800 | MSI KT266A Pro2 | 256 DDR-RAM | GeForce2 MX/MX400 64MB | 20GB Maxtor 5400]


Verwijderd

Je icoon zegt het al 8)

  • Xu
  • Registratie: Maart 2001
  • Laatst online: 29-04-2025
Eigenlijk wel ;)

maar ik kon het niet zo goed vinden.. :S

linkje? misschien :D

[AMD XP 2400@2.0GhZ | Asus A7V8X-X | 512 DDR-RAM | Sapphire Ati Radeon 9800 Pro 128 MB | 80GB Maxtor 5400] && [AMD DURON 800@800 | MSI KT266A Pro2 | 256 DDR-RAM | GeForce2 MX/MX400 64MB | 20GB Maxtor 5400]


  • MBV
  • Registratie: Februari 2002
  • Laatst online: 13-05 16:17

MBV

man bash? :)

  • wica
  • Registratie: Februari 2002
  • Laatst online: 14-01 16:59

wica

De duivel jacht op me

tip:
/etc/limits

RFC | The Linux Document Project | gentoo.


  • Xu
  • Registratie: Maart 2001
  • Laatst online: 29-04-2025
/etc/limits bestaat bij mij niet...

man bash... krijg heel iets anders.. :|

[AMD XP 2400@2.0GhZ | Asus A7V8X-X | 512 DDR-RAM | Sapphire Ati Radeon 9800 Pro 128 MB | 80GB Maxtor 5400] && [AMD DURON 800@800 | MSI KT266A Pro2 | 256 DDR-RAM | GeForce2 MX/MX400 64MB | 20GB Maxtor 5400]


  • Wirf
  • Registratie: April 2000
  • Laatst online: 13-05 18:47
Xu schreef op 30 januari 2003 @ 10:30:
/etc/limits bestaat bij mij niet...

man bash... krijg heel iets anders.. :|
man limits :)

Heeft sinds kort zijn wachtwoord weer terug gevonden!


Verwijderd

/etc/security/limits.conf

Hier de standaard Debian/Woody. Zit een uitleg bij, mogelijk heb jij die niet:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - an user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open files
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit
#        - maxlogins - max number of logins for this user
#        - priority - the priority to run user process with
#
#<domain>      <type>  <item>         <value>
#

#*               soft    core            0
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#@student        -       maxlogins       4

# End of file


LMD. Succes!

  • Xu
  • Registratie: Maart 2001
  • Laatst online: 29-04-2025
Aahh eindelijk een reply waar ik wat aan heb ;)

:) het is gelukt!! gedankt...

(misschien heb ik de man van limits niet geinstalleerd.. maar die heb ik niet)

[AMD XP 2400@2.0GhZ | Asus A7V8X-X | 512 DDR-RAM | Sapphire Ati Radeon 9800 Pro 128 MB | 80GB Maxtor 5400] && [AMD DURON 800@800 | MSI KT266A Pro2 | 256 DDR-RAM | GeForce2 MX/MX400 64MB | 20GB Maxtor 5400]


  • Wilke
  • Registratie: December 2000
  • Laatst online: 09:27
Het lijkt er niet op dat je zelf al hebt gezocht, zo te zien heb je geluk dat je het antwoord al hebt, maar dit is dus niet hoe wij graag topics zien in NOS.

Zie: [rml]-=[ Nieuw in NOS? Eerst dit lezen! GEEN HELPDESK! ]=-[/rml].

Deze gaat daarom dicht.
Pagina: 1

Dit topic is gesloten.