You are not logged in. Please login or register.
Active topics Unanswered topics
MySecureShell moved to github !
MySecureShell has moved to github.
Now this forum is keeped for history :)
Url:
https://github.com/mysecureshell/mysecureshell
Search options
Suite de
http://mysecureshell.free.fr/forum/viewtopic.php?id=619
J'ai un peu de mal à comprendre la succession de
Do you want to start server ? (y/n)
y
Can't wake up server: Operation not permitted
Server started [ OK ]
et surtout
Checking user : graphic
sudo: can't open /usr/local/etc/sudoers: Permission denied
et au bilan
j'ai
# /usr/local/bin/MySecureShell
Shell access is disabled !
Result de sftp-verif :
# /usr/local/bin/sftp-verif
################################################################################
MySecureShell Verification Tool
################################################################################
### Verifing file existance ###
/bin/MySecureShell [ FAILED ]
/usr/local/bin/sftp-who [ OK ]
/usr/local/bin/sftp-kill [ OK ]
/usr/local/bin/sftp-state [ OK ]
/usr/local/bin/sftp-admin [ OK ]
/usr/local/bin/sftp-verif [ OK ]
/usr/local/bin/sftp-user [ OK ]
### Verifing rights ###
Verifing file rights of /usr/local/etc/sftp_config [ OK ]
Verifing file rights of /usr/local/bin/sftp-who [ OK ]
Verifing file rights of /usr/local/bin/sftp-verif [ OK ]
Verifing file rights of /usr/local/bin/sftp-user [ OK ]
Verifing file rights of /usr/local/bin/sftp-kill [ OK ]
Verifing file rights of /usr/local/bin/sftp-state [ OK ]
Verifing file rights of /usr/local/bin/sftp-admin [ OK ]
File /bin/MySecureShell does not exist [ FAILED ]
### Verifing rotation logs ###
1
### Verifing server status ###
Verifing server status (ONLINE) [ FAILED ]
Do you want to start server ? (y/n)
y
Can't wake up server: Operation not permitted
Server started [ OK ]
### Verifing server dependencies ###
Show only error(s) :
/bin/MySecureShell: not found
### Verifing server configuration ###
Show only error(s) :
Trying user: root
/bin/MySecureShell: not found
Checking user : graphic
sudo: can't open /usr/local/etc/sudoers: Permission denied
### All tests dones ###
correction sur le .configure
./configure --bindir=/usr/local/bin/ --with-conffile=/usr/local/etc/sftp_config --with-logfile=/var/log --sbindir=/usr/local/sbin --with-shutfile=/var/run --with-admin=no
--with-conffile=/usr/local/etc/sftp_config
il faut donner le chemin complet du fichier de config (pourtant mon premier make install avait bien déposé le fichier de base dans /usr/local/etc/, mais MySecureShell tentait ensuite d'ouvir le répertoire /etc je pense avec un message d'erreur "'property P' is not recognized ...
A présent faire /usr/local/bin/MysSecureShell me retourne "Shell access is disabled !"
Je cherche encore ...
histoire de faire un retour
./configure --bindir=/usr/local/bin/ --with-conffile=/usr/local/etc --with-logfile=/var/log --sbindir=/usr/local/sbin --with-shutfile=/var/run --with-admin=no
donne
MySecureShell has been configured with the following options:
Log file: /var/log (color: no)
User binaries: /usr/local/bin
Shutdown file: /var/run
Configuration file: /usr/local/etc
Compilation flags:
Option supported:
ACL : no
Remote Admin : no
UTF-8 Encoding : no
Sftp extension supported:
Disk Usage : yes
Disk Usage OpenSSH: yes
File Hashing : yes
mais le make install donne ceci :
# make install
#########################################
# MySecureShell #
#########################################
Welcome to the MySecureShell installation script !
Detecting needed files for installation:
Existing file MySecureShell [ OK ]
Existing file sftp_config [ OK ]
Do you want to test MySecureShell (check libraries requirement) ? (Y/n)
Test MySecureShell...
Test ending
This script will made a few operations:
- Install MySecureShell in /bin
- Make a configuration file in /etc/ssh/sftp_config
- Introduce if which MySecureShell as a valid shell
- Install utilities in /usr/bin
WARNING: The server will shutdown and all sftp connected clients will be killed !
- Do you want to continue installation ? (Y/n)
MySecureShell Installation
MySecureShell file created [ OK ]
MySecureShell file created [ OK ]
cp: /bin/MySecureShell: Read-only file system
chmod: /bin/MySecureShell: No such file or directory
Do you want MySecureShell shell to be add like valid shell on your system ? (Y/n)
MySecureShell shell added like a valid shell [ OK ]
Installation of tool sftp-who [ OK ]
Installation of tool sftp-kill [ OK ]
Installation of tool sftp-state [ OK ]
Installation of tool sftp-admin [ OK ]
Installation of tool sftp-verif [ OK ]
Installation of tool sftp-user [ OK ]
Do you want to automatically rotate MySecureShell logs ? (Y/n)
Initialisation of MySecureShell rotation logs [ FAILED ]
cp: /usr/share/man/man8/sftp-state.8: Read-only file system
cp: /usr/share/man/man8/sftp-verif.8: Read-only file system
cp: /usr/share/man/man8/sftp-user.8: Read-only file system
cp: /usr/share/man/man8/sftp-who.8: Read-only file system
cp: /usr/share/man/man8/sftp-kill.8: Read-only file system
cp: /usr/share/man/man8/sftp-admin.8: Read-only file system
cp: /usr/share/man/man8/MySecureShell.8: Read-only file system
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file target_file
cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file ... target_directory
Installation of Manuals [ OK ]
Installation Finished !
Note: If you run on Mac OS X, don't forget to copy MSS folder in Applications !
Il est têtu pour écrire dans /bin (cp: /bin/MySecureShell: Read-only file system)
et pour "Initialisation of MySecureShell rotation logs " je ne sais pas ce qu'il tente de faire.
Cordialement
teka wrote:Bonjour,
Effectivement il semble que l'option "--prefix" ne soit pas respectée.
Maintenant il est possible de déplacer les binaires avec l'option "--bindir", pour le fichier de configuration "--with-conffile" et pour le fichier de log "--with-logfile".
Concernant les mans, il faudra le faire manuellement... 
Je vais voir à corriger ce soucis pour les prochaines versions 
je ne souffrirais pas pour le man 
j'avais peur que d'autres éléments de config ne soient pas mis à jour mais si l'intégralité du soft est installée au bon endroit avec des deux options, je vais retenter.
Merci
Bonjour
MSS semble un bon logiciel mais le script d'installation et notamment ./configure "ment" sur ses capacités.
./configure --help balance les options standards et notamment le VITAL --prefix mais ne les respecte pas
MSS insiste lourdement pour s'installer dans /bin et autre /directory.
Outre le fait que ces répertoires sont en général réservé aux binaires systèmes fournis par l'OS (dans mon cas FreeBSD) cela empêche toute installation dans une "jail" freebsd pour laquelle ces répertoires sont structurellement et volontairement en "lecture seule".
J'aimerais pouvoir passer /usr/local comme --prefix et tout fonctionnerait, enfin j'espère.
Une chance que cela soit possible ?
Cordialement
Posts found: 5