1

(12 replies, posted in Configuration)

Thank you teka, i'll try that.

2

(12 replies, posted in Configuration)

i mean't "./configure" too but with color at "no" it didn't work. My logs are colored.

3

(12 replies, posted in Configuration)

Ok it's almost fixed.
I forgot to make a

make install

Well, the problem remains that it's still in color logged.
http://img374.imageshack.us/img374/1241/colorloggedpg0.th.jpg

4

(12 replies, posted in Configuration)

another problem, the logs.

Before recompiling, i made a

cp /var/log/sftp-server.log /var/log/sftp-server.log_old
> /var/log/sftp-server.log

to empty them.

To compile i became root in my "/root/mysecureshell_1.0/" directory (.tar.gz archive i uncomressed)
i compiled with :

./configure --with-logfile=/var/log/sftp-server.log --with-logcolor=no
make all

After recompiling, i made :

cp -f MySecureShell /bin/MySecureShell && chmod 755 /bin/MySecureShell

I perform some sftp actions, but my logs remains desperatly empty.

something's broken sad

5

(12 replies, posted in Configuration)

Problem :

I compiled --with-logcolor=no and it compiled with yes :-/

http://img174.imageshack.us/img174/6789/msscompilationwz2.th.jpg

6

(12 replies, posted in Configuration)

Hello again.

(AwStats logfile analyser is on a windows client
(MySecureShell server is on a debian

I just checked and i saw i installed from a package.

/var/cache/apt/archives/mysecureshell_1.0_i386.deb

How can i recompile from a package ? (sorry i am a newbinux)

edit :

I found that --> http://mysecureshell.sourceforge.net/fr … #question2
But i wonder if i must uninstall the package i installed before reinstalling from compiled sources.

7

(12 replies, posted in Configuration)

ok i'll try that
thank you big_smile

8

(12 replies, posted in Configuration)

pareil pour moi

oups,

same for me.

I have to set up a specific logfiles analyser --> AwStats ( http://awstats.sourceforge.net )
This logfiles analyser config file, can be modified to match some logfile formats. But there are some required fields as :
- code
- bytesd
- methodurl (or method)

for exemple i tryed to modify AwStats to match MySecureShell log format but i could not do something less than this 

LogFormat="%time2 %code %logname %host %methodurlnoprot %bytesd"

The problem is i get a perl error when i launch the AwStats.pl perl script because i think i can't handle the final ^[37:40:0m
But this is probably not this because i tried to edit the log file and replace all the ^[37:40:0m with "0000" and it said the same error about no more existing ^[37:40:0m !!!??

http://img510.imageshack.us/img510/5755/awstatsperlerrorbn0.th.jpg

So i am very interrested to be able to modify the MySecureShell log format to make the both "MySecureShell" and "AwStats" work together.

Exemple of my MySecureShell logfile

2008-05-12 16:17:52 [32:40:1m[2304]New client [nathalie] from [192.168.0.2][37:40:0m
2008-05-12 14:18:32 [31:40:1m[2304][nathalie][192.168.0.2]Try to create directory '/projet-25' : success[37:40:0m
2008-05-12 16:20:52 [32:40:1m[2310]New client [nathalie] from [192.168.0.2][37:40:0m
2008-05-12 14:20:52 [34:40:1m[2310][nathalie][192.168.0.2]Upload into file '/projet-25/P25-52.JPG'[37:40:0m
2008-05-12 16:20:52 [32:40:1m[2312]New client [nathalie] from [192.168.0.2][37:40:0m
2008-05-12 16:20:52 [34:40:1m[2312][nathalie][192.168.0.2]Upload into file '/projet-25/P25-53.JPG'[37:40:0m
2008-05-12 14:20:53 [34:40:1m[2310][nathalie][192.168.0.2]Upload into file '/projet-25/P25-54.JPG'[37:40:0m
2008-05-12 16:20:53 [34:40:1m[2312][nathalie][192.168.0.2]Upload into file '/projet-25/P25-49.JPG'[37:40:0m
2008-05-12 14:20:54 [34:40:1m[2310][nathalie][192.168.0.2]Upload into file '/projet-25/P25-50.JPG'[37:40:0m
2008-05-12 16:20:54 [34:40:1m[2312][nathalie][192.168.0.2]Upload into file '/projet-25/P25-51.JPG'[37:40:0m
2008-05-12 14:21:03 [32:40:1m[2304][nathalie][192.168.0.2]Quit.[37:40:0m

C'est bon.
J'ai tout refait depuis le début avec un nouvel utilisateur et je peux me connecter avec ce nouvel utilisateur à distance par l'interface java.
Merci pour vos réponses.
Il me reste à trouver pourquoi je ne pouvais pas avec mon compte user habituel... Peut être parce que le shell de mon compte habituel n'était pas MySecureShell mais Bash.

Ok mais

Si je créer un groupe systeme nommé "sftp_administrator" dans "/etc/group"
Et que j'affecte à ce groupe (par adduser) les utilisateurs "root" et "fabrozor"
Et qu'enfin je modifie le fichier "/etc/sftp-config" en mettant "IsAdmin" dans le groupe "sftp_administrator"

Je devrais logiquement pouvoir me connecter avec la console java sftp-mss.jar ?

Hors, ça ne marche pas :-/
Je ne vois pas d'où vient le probleme qui me bloque.

Merci pour la réponse et pour le lien.

Mais alors il y a un truc que je ne comprend pas bien.

Lorsque j'ai mis IsAdmin dans sftp-config pour le groupe sftp_administrator, ma manip précédente aurait du marcher lorsque j'avais créé le groupe sftp_administrator et que j'y avait affecté root et fabrozor.

Bonjour,

J'ai plusieurs petits problèmes, si vous voulez bien m'aider ça m'arrangerait.

Tout dabord, ma maitrise de linux est limitée.
Je ne dois pas être très doué car je n'ai pas compris grand chose à la façon de gérer les users et les groupes dans sftp_config.

Au fait ... je peux me logger avec Filezilla en sftp sur le serveur MySecureShell avec mon compte user "fabrozor"

Mon but est d'administrer mon serveur MySecureShell (sous Debian) à distance depuis un poste windows, avec le compte "fabrozor".
J'ai donc installé java 1.6 sur le poste windows et téléchargé sftp-mss.jar

J'ai essayé de me logger avec l'interface d'administration en java mais .... je peux me connecter au serveur mais j'ai une erreur concernant la connexion à l'administration.

Je me suis dit que c'est parce que "fabrozor" n'est pas dans le groupe sftp_administrator

Sur le serveur MySecureShell, j'ai donc ouvert une console en tant que root pour faire :

# groupadd sftp_administrator
# adduser root sftp_administrator
# adduser fabrozor sftp_administrator

J'ai rééssayé de me logger depuis le poste windows mais sans succès.

Je me suis donc dit que ça n'est pas au niveau de "/etc/group" qu'il faut rajouter fabrozor mais dans "/etc/ssh/sftp_config"
J'ai donc annulé mes manips précédentes par :

# deluser fabrozor sftp_administrator
# deluser root sftp_administrator
# delgroup sftp_administrator

J'ai ensuite ouvert le fichier "/etc/ssh/sftp-config" mais là je ne vois pas comment rajouter fabrozor au groupe sftp_administrator.

Bref, ça s'embrouille un peu dans ma tête.

Auriez vous une explication simple, claire et efficace ?

(merci d'avance)