Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

lug-bg: scponly: sftp chrooted problem with RedHat 8.0/9 (problem+reshenie)


  • Subject: lug-bg: scponly: sftp chrooted problem with RedHat 8.0/9 (problem+reshenie)
  • From: vlk@email.domain.hidden (Vesselin Kolev)
  • Date: Thu, 31 Jul 2003 15:28:55 +0300


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zdraveite,

  Poluchih prez izminalia mesec dve pisma s vyprosi okolo scponly i po-
specialno okolo choroot-vaneto na potrebiteli v RedHat 8.0/9. Iavno
problema go niama v drugi distribucii (ili pone nikoi ne se e oplakal).

  Pyrviat problem zapochva s izpylnenieto na scripta setup_chroot.sh.
Scriptyt ne mozhe da nameri programata /usr/bin/useradd. Otvorete faila
i namerete slednia segment:

<p>USE_PW=0;
if [ x/usr/sbin/useradd = x ]; then
       USE_PW=1;
else 
    if [ x = x ]; then
       echo "this script requires the program useradd or pw to add your"
       fail "chrooted scponly user."
    fi
fi

i go preobrazuvaite taka:

USE_PW=1;
#if [ x/usr/sbin/useradd = x ]; then
#       USE_PW=1;
#else 
#    if [ x = x ]; then
#       echo "this script requires the program useradd or pw to add your"
#       fail "chrooted scponly user."
#    fi
#fi

Ima i oshte edin problem predi da se startira scripta, v koito sa naneseni
tezi popravki. Scriptyt ne iska da izgrazhda subirectorii. Naprimer toi ne
izgrazhda /chrooted_user_dir/usr/kerberos, a syshto taka i
/chrooted_user_dir/usr/kerberos/lib. Tiah traibva da si gi syzdadete sami!

Sled tova spokoino mozhete da startirate scripta:

bash setup_chroot.sh

i da napravite chroot directoria na syotvetnia potrebitel. 

Ako sprete samo dotuk, shte ustanovite, che usera, koito e 
chrootnat ne mozhe chrez sftp ili WinSCP da kopira failove i directorii.
Za da se otstrani tozi problem traibva da se napravi edin hityr trik. Da se
kopira sydyrzhanieto na directoriata /chrooted_user_dir/usr/kerberos/lib
v /chrooted_user_dir/lib (niama da obiasniavam zashto..prosto go napravete).
Razbira se.. mozhe da se napraviat i symlinkove (relativni).

  Tova e vsichko. Mislia, che shte byde polezno da dosta hora.

   Pozdravi
    Beco
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/KQuO+48lZPXaa+MRAkxDAJ4gb0WvIcHh1JaDXZsZjyRsLHhKawCgjYqP
K9pICktcLgmKq3PYojZaafM=
=YXN7
-----END PGP SIGNATURE-----

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.