User über ssh anlegen!

Alles, was den ProFTPD betrifft, kann hier besprochen werden.

User über ssh anlegen!

Postby MaStErMaN » 13. June 2004 02:14

Hallo,
habe mir nen Server installiert und möchte nun über Putty (ssh) vom Windowsrechner nen user anlegen. Dess mit dem standartuser kann man leider keine Files hochladen :(

Kann mir jemand sagen wie ich das machen muss?

Gruss dE_MaStEr
MaStErMaN
 
Posts: 7
Joined: 13. June 2004 02:11

Postby DJ DHG » 13. June 2004 10:03

Moin Moin

schau mal ein paar posts weiter unten, genau die selbe frage!

mfg DJ DHG
User avatar
DJ DHG
AF Moderator
 
Posts: 2455
Joined: 27. December 2002 13:50
Location: Kiel

Postby MaStErMaN » 13. June 2004 10:35

Ja, hier wird beschrieben wie man es in einer config ändert. Habe jedoch keine Ahnung wo die config auf meinem FTP liegt. Kann man das nicht über einen befehl ändern? Sow wie wenn man bei Linux User anlegt?
MaStErMaN
 
Posts: 7
Joined: 13. June 2004 02:11

Postby Antivirus » 13. June 2004 11:26

useradd -c "Bill Gates" -d /home/bill -g users -u 1003 -m -s /bin/bash bill

-c fügt Kommentar an, bspw. Name
-d das Homeverzeichnis
-g Gruppe des neuen Benutzers
-u User-ID
-m Homeverzeichnis kreieren
-s Default-Shell
User avatar
Antivirus
 
Posts: 124
Joined: 11. April 2003 19:33

Postby MaStErMaN » 13. June 2004 15:00

Mhh, so lege ich einen linux user an, aber keinen FTP user oder?
MaStErMaN
 
Posts: 7
Joined: 13. June 2004 02:11

Postby Antivirus » 13. June 2004 15:14

Sali

wenn du in der config
DefaultRoot ~
hast dann geht das auch..

passwd bill

mit diesem befehl kann du ein passwort für den user anlegen

Gruss
User avatar
Antivirus
 
Posts: 124
Joined: 11. April 2003 19:33

Postby MaStErMaN » 13. June 2004 16:02

Mhh,
irgendwie bin ich jetzt voll durcheinander.

Welche config? Die ftp config? Wo liegt die config für den FTP denn?

ich möchte keine Linux user anlegen sondern einfach nur nen neuen USER bei meinem FTP Server. BZW ich möchte die Rechte auch verändern.
MaStErMaN
 
Posts: 7
Joined: 13. June 2004 02:11

Postby Antivirus » 13. June 2004 16:06

also du kannst ganz normale user anlegen (linux user) die können sich mit /sbin/nologin nicht lokal einloggen.

die ftp config findest du unter /opt/lampp/etc/proftpd.conf

teste es einmal...
leg ein user an dann mach ein passwort für den user und versuch dich über ftpclient einzuloggen.

in der ftpconfig muss aber DefaultRoot ~ sein
User avatar
Antivirus
 
Posts: 124
Joined: 11. April 2003 19:33

Postby MaStErMaN » 13. June 2004 17:00

Antivirus wrote:also du kannst ganz normale user anlegen (linux user) die können sich mit /sbin/nologin nicht lokal einloggen.

die ftp config findest du unter /opt/lampp/etc/proftpd.conf

teste es einmal...
leg ein user an dann mach ein passwort für den user und versuch dich über ftpclient einzuloggen.

in der ftpconfig muss aber DefaultRoot ~ sein


Also das is die standartcfg:

Code: Select all
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName         "ProFTPD"
ServerType         standalone
DefaultServer         on

# Port 21 is the standard FTP port.
Port            21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask            022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances         30

# Set the user and group that the server normally runs at.
User            nobody
#Group            nogroup

# Normally, we want files to be overwriteable.
<Directory /opt/lampp/htdocs/*>
  AllowOverwrite      on
</Directory>

# only for the web servers content
DefaultRoot /opt/lampp/htdocs

# nobody gets the password "lampp"
UserPassword nobody wRPBu8u4YP0CY

# nobody is no normal user so we have to allow users with no real shell
RequireValidShell off

# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off


Was muss ich dann da ändern das der user nobody schreiben, ordner eröffnen, löschen und lesen darf?
MaStErMaN
 
Posts: 7
Joined: 13. June 2004 02:11

Postby Kampfwurst » 07. July 2004 21:07

naja... malö ne frage... wie änder ich das pass von user nobody??
Kampfwurst
 
Posts: 32
Joined: 21. April 2004 14:04

Postby Jackson » 05. March 2006 21:46

Guten Abend!

Ich habe über

"linux:~ # useradd -g nogroup -d /opt/lampp/htdocs/jackson/ -s /bin/false jackson"

Den User jackson angelegt...

danach das PW vergeben über

"linux:~ # passwd jackson"

Nun hat der User aber keine Schreibrechte und auch nicht im Verzeichnis /jackson/ wie im User eintragen eingegeben...

Und noch eine Frage... wie kann ich die User, dei angelegt sidn aufgeleistet sehen?

mfg jackson
Jackson
 
Posts: 2
Joined: 05. March 2006 21:36

Postby thorsin » 05. March 2006 21:49

Kampfwurst wrote:naja... malö ne frage... wie änder ich das pass von user nobody??


passwd deinUser
User avatar
thorsin
 
Posts: 136
Joined: 05. March 2006 20:39

Postby thorsin » 05. March 2006 21:50

Jackson wrote:Und noch eine Frage... wie kann ich die User, dei angelegt sidn aufgeleistet sehen?

mfg jackson


stehen in /etc/users oder so
User avatar
thorsin
 
Posts: 136
Joined: 05. March 2006 20:39

Postby Jackson » 05. March 2006 21:55

Wie?? :oops:

und was ist mit dem Pfad und SChreibrechten?
Jackson
 
Posts: 2
Joined: 05. March 2006 21:36

Postby thorsin » 05. March 2006 22:02

schau dir mal "man user" "man usermod" an, da sollte was dazu drinstehen
User avatar
thorsin
 
Posts: 136
Joined: 05. March 2006 20:39


Return to ProFTPD

Who is online

Users browsing this forum: No registered users and 4 guests