Re: lug-bg: Adduser script i PHP

2001-05-18 Thread Nick Kirchev

On ? 11 ??? 2001 08:13, you wrote:
>  Zdraveite.
>
> Imam goliam problem.
> Triabva da napisha script na PHP, koito da addva user na mashinata
> (Slackware Linux 7.1) i ednovremenno s tova da vpisva v MySQL bazi danni.
> Shto se otnasia do bazite danni veche sym gotov no ne moga da razbera kak
> da napisha scripta za addvaneto na usera.
>
> Ve3che probvah s md5sum no resultata e razlichen ot nujnia v shadow faila.
> Niakoi sluchaino da ime ideia ili da e pisal neshto takova ?
> Shte vi byda mnogo blagodaren za vsiakakva informacia ot toia sort.
> BTW tyrsih mnogo v phpbuilder.com i v oshte niakolko stranici ot toia sort.
>
> V kraina smetka ako tova ne e vyzmojno da stane s PHP to syglasen sym da
> priema takova reshenie i na perl.
>
> Ako triabva shte si platia samo niakoi da mi go napishe ili podskaje kak da
> si go napisha. Mnogo mi e speshno. Please help me.

Ako ti trqbwat tezi accounti samo za poluchawane / izprastane na  mail
mojesh da polzwash pachowe za syotwetnite serves + MySQL patch
az sum probwal sys sendmail , postfix , qmail + mysql patch 
/nai lesno stana s Qmail-a pachwaneto i podkarwaneto / i  Qpopper +mysql za 
POP3 
Ako tezi accounti ste sa i za polzwane na shell i drugi moje da polszwash 
pam-mysql. 
No towa ne addwa userite w /etc/passwd + shadow 

za adwane w /etc/passwd + shadow ,mojesh da napravish nqkoi script startiran 
s root prawa i da go pusnesh w cron-a, no towa e typo i ne nadejdno...

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



Re: lug-bg: Adduser script i PHP

2001-05-11 Thread Tihomir Georgiev

shto se otnasq do syzdavaneto na home direktoriqta, dobavi -m. A za 
password-a ne znam. Eto kakvo pishe v man-a:

-p passwd   The encrypted password, as returned by crypt(3). The 
default is to disable the account.

Pyrvo trqbva da kriptirash parolata i taka da q podadesh na useradd.

> > On Friday 11 May 2001 08:13, you wrote:
> > Mozhesh da izpolzvash neshto dosta neskoposano, no pyk vyrsheshto
> > rabota. Da si napravish v SQL-a edna database da kazhem "todo" i v 
neq
> > da si vkarvash  komandite (neshto ot roda na "useradd -p password -s
> > /dev/null name"). Sled  tova v crontab-a na root-a si slagash edno
> > scriptche deto samo da izpylnqva  tova, deto e napisano v todo.
> > Hope it works...
> 
> I az taka si misleh ama ti pravil li si go ?
> Da to raboti ama napolovina zashtoto ne sysdava dir /home/user
> i pogledni kakvo pravi v /etc/shadow
> Taka triabva da izglejda normano:
> fccf:$1$0n7YuvYG$Ae3qL5wgpVuEfvbK/pdI6.:11442:0:9:7:::
> 
> A to izglejda taka:
> lamer:lamershtina:11453:0:9:7:::
> 
> Shto se otnasia do /etc/passwd mi se struva normalno vsichko.
> lamer:x:1019:100::/home/lamer:/bin/false
> 
> 
> e?
> 
> 
> 
> > 
> >>  Zdraveite.
> >>
> >> Imam goliam problem.
> >> Triabva da napisha script na PHP, koito da addva user na mashinata
> >> (Slackware Linux 7.1) i ednovremenno s tova da vpisva v MySQL bazi
> >> danni. Shto se otnasia do bazite danni veche sym gotov no ne moga 
da
> >> razbera kak da napisha scripta za addvaneto na usera.
> >>
> >> Ve3che probvah s md5sum no resultata e razlichen ot nujnia v shadow
> >> faila. Niakoi sluchaino da ime ideia ili da e pisal neshto takova ?
> >> Shte vi byda mnogo blagodaren za vsiakakva informacia ot toia sort.
> >> BTW tyrsih mnogo v phpbuilder.com i v oshte niakolko stranici ot 
toia
> >> sort.
> >>
> >> V kraina smetka ako tova ne e vyzmojno da stane s PHP to syglasen 
sym
> >> da priema takova reshenie i na perl.
> >>
> >> Ako triabva shte si platia samo niakoi da mi go napishe ili 
podskaje
> >> kak da si go napisha. Mnogo mi e speshno. Please help me.
> > 
> 

===
> > A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> > http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara
> > Zagora
> 
> 
> -- 
> -
> Marian Popov
> Linux system administrator
> http://www.pazardjik.com/
> e-mail: [EMAIL PROTECTED]
> icq: 9362972
> Cel: +359 (88) 975753
> 
> 

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

--- 
Don't go where the path may lead, go instead where there is no path and 
leave a trail...
---
Tihomir Georgiev
===
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



Re: lug-bg: Adduser script i PHP

2001-05-11 Thread Yavor Kolarov

Zdraviei!

Mozhe bi ne e mnogo dobro reshenie, no zashto ne mozhe da se sazdade bash 
skript za dobavqne na potrebiteli, koito priema kato argumenti ime na 
potrebitel, passwd i dr. i gi pridava na adduser. Tozi skript triabva da e 
sas set user id. Ot PHP mozhesh da go izvikash prez interfeisa za startirane 
na vanshni programi.

Uspeh!
Yavor
===
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



Re: lug-bg: Adduser script i PHP

2001-05-11 Thread Marian Popov

> On Friday 11 May 2001 08:13, you wrote:
> Mozhesh da izpolzvash neshto dosta neskoposano, no pyk vyrsheshto
> rabota. Da si napravish v SQL-a edna database da kazhem "todo" i v neq
> da si vkarvash  komandite (neshto ot roda na "useradd -p password -s
> /dev/null name"). Sled  tova v crontab-a na root-a si slagash edno
> scriptche deto samo da izpylnqva  tova, deto e napisano v todo.
> Hope it works...

I az taka si misleh ama ti pravil li si go ?
Da to raboti ama napolovina zashtoto ne sysdava dir /home/user
i pogledni kakvo pravi v /etc/shadow
Taka triabva da izglejda normano:
fccf:$1$0n7YuvYG$Ae3qL5wgpVuEfvbK/pdI6.:11442:0:9:7:::

A to izglejda taka:
lamer:lamershtina:11453:0:9:7:::

Shto se otnasia do /etc/passwd mi se struva normalno vsichko.
lamer:x:1019:100::/home/lamer:/bin/false


e?



> 
>>  Zdraveite.
>>
>> Imam goliam problem.
>> Triabva da napisha script na PHP, koito da addva user na mashinata
>> (Slackware Linux 7.1) i ednovremenno s tova da vpisva v MySQL bazi
>> danni. Shto se otnasia do bazite danni veche sym gotov no ne moga da
>> razbera kak da napisha scripta za addvaneto na usera.
>>
>> Ve3che probvah s md5sum no resultata e razlichen ot nujnia v shadow
>> faila. Niakoi sluchaino da ime ideia ili da e pisal neshto takova ?
>> Shte vi byda mnogo blagodaren za vsiakakva informacia ot toia sort.
>> BTW tyrsih mnogo v phpbuilder.com i v oshte niakolko stranici ot toia
>> sort.
>>
>> V kraina smetka ako tova ne e vyzmojno da stane s PHP to syglasen sym
>> da priema takova reshenie i na perl.
>>
>> Ako triabva shte si platia samo niakoi da mi go napishe ili podskaje
>> kak da si go napisha. Mnogo mi e speshno. Please help me.
> 
===
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara
> Zagora


-- 
-
Marian Popov
Linux system administrator
http://www.pazardjik.com/
e-mail: [EMAIL PROTECTED]
icq: 9362972
Cel: +359 (88) 975753

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



Re: lug-bg: Adduser script i PHP

2001-05-11 Thread Stanislav Lechev

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 11 May 2001 16:26, you wrote:
> kazah useradd, a ne adduser. useradd ima v Slack >= 7.1 i ima -p.
>

greshka slack >= 3.4

[.]
- -- 
- -===-
- - Regards,AngelFire -
- - Stanislav Lechev<[EMAIL PROTECTED]>-
- -PGP Key: http://firedust.vega.bg/pgp/StanislavLechev.asc   -
- -  Vega Internet Service Provider (tm)  --  http://www.vega.bg  -
- -===-
   Everyone is a genius. 
 It's just that some people are too stupid to realize it.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6+7w58RPXBhiMqewRAsPQAJ4+5pKwI3UFhJKawhs3rkhc+6ENQgCfSXMb
IcoYCCrPdPP5wL3DMfSuPa4=
=s5t9
-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



RE: lug-bg: Adduser script i PHP

2001-05-11 Thread Tihomir Georgiev

kazah useradd, a ne adduser. useradd ima v Slack >= 7.1 i ima -p.

> adduser pod slack nema -p i ne priema paipowe...
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tihomir Georgiev
> Sent: Friday, May 11, 2001 9:37 AM
> To: [EMAIL PROTECTED]
> Subject: Re: lug-bg: Adduser script i PHP
> 
> 
> On Friday 11 May 2001 08:13, you wrote:
> Mozhesh da izpolzvash neshto dosta neskoposano, no pyk vyrsheshto 
rabota.
> Da si napravish v SQL-a edna database da kazhem "todo" i v neq da si
> vkarvash
> komandite (neshto ot roda na "useradd -p password -s /dev/null 
name"). Sled
> tova v crontab-a na root-a si slagash edno scriptche deto samo da 
izpylnqva
> tova, deto e napisano v todo.
> Hope it works...
> 
> >  Zdraveite.
> >
> > Imam goliam problem.
> > Triabva da napisha script na PHP, koito da addva user na mashinata
> > (Slackware Linux 7.1) i ednovremenno s tova da vpisva v MySQL bazi 
danni.
> > Shto se otnasia do bazite danni veche sym gotov no ne moga da 
razbera kak
> > da napisha scripta za addvaneto na usera.
> >
> > Ve3che probvah s md5sum no resultata e razlichen ot nujnia v shadow 
faila.
> > Niakoi sluchaino da ime ideia ili da e pisal neshto takova ?
> > Shte vi byda mnogo blagodaren za vsiakakva informacia ot toia sort.
> > BTW tyrsih mnogo v phpbuilder.com i v oshte niakolko stranici ot 
toia
> sort.
> >
> > V kraina smetka ako tova ne e vyzmojno da stane s PHP to syglasen 
sym da
> > priema takova reshenie i na perl.
> >
> > Ako triabva shte si platia samo niakoi da mi go napishe ili 
podskaje kak
> da
> > si go napisha. Mnogo mi e speshno. Please help me.
> 

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

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

--- 
Don't go where the path may lead, go instead where there is no path and 
leave a trail...
---
Tihomir Georgiev
===
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



RE: lug-bg: Adduser script i PHP

2001-05-11 Thread Kostadin Karaivanov

adduser pod slack nema -p i ne priema paipowe...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tihomir Georgiev
Sent: Friday, May 11, 2001 9:37 AM
To: [EMAIL PROTECTED]
Subject: Re: lug-bg: Adduser script i PHP


On Friday 11 May 2001 08:13, you wrote:
Mozhesh da izpolzvash neshto dosta neskoposano, no pyk vyrsheshto rabota.
Da si napravish v SQL-a edna database da kazhem "todo" i v neq da si
vkarvash
komandite (neshto ot roda na "useradd -p password -s /dev/null name"). Sled
tova v crontab-a na root-a si slagash edno scriptche deto samo da izpylnqva
tova, deto e napisano v todo.
Hope it works...

>  Zdraveite.
>
> Imam goliam problem.
> Triabva da napisha script na PHP, koito da addva user na mashinata
> (Slackware Linux 7.1) i ednovremenno s tova da vpisva v MySQL bazi danni.
> Shto se otnasia do bazite danni veche sym gotov no ne moga da razbera kak
> da napisha scripta za addvaneto na usera.
>
> Ve3che probvah s md5sum no resultata e razlichen ot nujnia v shadow faila.
> Niakoi sluchaino da ime ideia ili da e pisal neshto takova ?
> Shte vi byda mnogo blagodaren za vsiakakva informacia ot toia sort.
> BTW tyrsih mnogo v phpbuilder.com i v oshte niakolko stranici ot toia
sort.
>
> V kraina smetka ako tova ne e vyzmojno da stane s PHP to syglasen sym da
> priema takova reshenie i na perl.
>
> Ako triabva shte si platia samo niakoi da mi go napishe ili podskaje kak
da
> si go napisha. Mnogo mi e speshno. Please help me.
===
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora

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



Re: lug-bg: Adduser script i PHP

2001-05-10 Thread Tihomir Georgiev

On Friday 11 May 2001 08:13, you wrote:
Mozhesh da izpolzvash neshto dosta neskoposano, no pyk vyrsheshto rabota.
Da si napravish v SQL-a edna database da kazhem "todo" i v neq da si vkarvash 
komandite (neshto ot roda na "useradd -p password -s /dev/null name"). Sled 
tova v crontab-a na root-a si slagash edno scriptche deto samo da izpylnqva 
tova, deto e napisano v todo.
Hope it works...

>  Zdraveite.
>
> Imam goliam problem.
> Triabva da napisha script na PHP, koito da addva user na mashinata
> (Slackware Linux 7.1) i ednovremenno s tova da vpisva v MySQL bazi danni.
> Shto se otnasia do bazite danni veche sym gotov no ne moga da razbera kak
> da napisha scripta za addvaneto na usera.
>
> Ve3che probvah s md5sum no resultata e razlichen ot nujnia v shadow faila.
> Niakoi sluchaino da ime ideia ili da e pisal neshto takova ?
> Shte vi byda mnogo blagodaren za vsiakakva informacia ot toia sort.
> BTW tyrsih mnogo v phpbuilder.com i v oshte niakolko stranici ot toia sort.
>
> V kraina smetka ako tova ne e vyzmojno da stane s PHP to syglasen sym da
> priema takova reshenie i na perl.
>
> Ako triabva shte si platia samo niakoi da mi go napishe ili podskaje kak da
> si go napisha. Mnogo mi e speshno. Please help me.
===
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



Re: lug-bg: Adduser script i PHP

2001-05-10 Thread Ivaylo Toshev

Îñíîâíèÿò òè ïðîáëåì, àêî ïîëçâàø APACHE + PHP, êàêòî ïðåäïîëàãàì ïðàâèø, 
å ÷å çà äà ìîæåø äà äîáàâèø ïîòðåáèòåë â ñèñòåìàòà, òðÿáâà äà ñè ïóñíåø 
APACHE ñ ïðàâà íà ROOT, êîåòî ðàçáèðà ñå å. ì. íà ñèãóðíîñòòà 
îòâñÿêúäå!
Ñ äâå äóìè, ñ APACHE + PHP ÍÅ ÌÎÆÅØ äà íàïðàâèø ñèñòåìåí àêàóíò, îñâåí àêî 
íå ÄÈÑÊÐÅÄÈÒÈÐÀØ ÑÈÃÓÐÍÎÑÒÒÀ íà ñèñòåìàòà.

ÂÑÅ ÏÀÊ , èìà íà÷èí, íî äàëè ùå ñðàáîòè íå çíàì, âúâ âñåêè ñëó÷àé, ïðî÷åòè 
SuEXEC ìåõàíèçìà â APACHE êàê ñå ïîëçâà, òîé ïðåäîñòàâÿ âúçìîæíîñò äà 
ñòàðòèðàø ñêðèïò ñ ïðàâà íà äðóã ïîòðåáèòåë !


Ïåòúê 11 05, 2001 08:13 , Marian Popov íàïèñàõòå:
>  Zdraveite.
>
> Imam goliam problem.
> Triabva da napisha script na PHP, koito da addva user na mashinata
> (Slackware Linux 7.1) i ednovremenno s tova da vpisva v MySQL bazi danni.
> Shto se otnasia do bazite danni veche sym gotov no ne moga da razbera kak
> da napisha scripta za addvaneto na usera.
>
> Ve3che probvah s md5sum no resultata e razlichen ot nujnia v shadow faila.
> Niakoi sluchaino da ime ideia ili da e pisal neshto takova ?
> Shte vi byda mnogo blagodaren za vsiakakva informacia ot toia sort.
> BTW tyrsih mnogo v phpbuilder.com i v oshte niakolko stranici ot toia sort.
>
> V kraina smetka ako tova ne e vyzmojno da stane s PHP to syglasen sym da
> priema takova reshenie i na perl.
>
> Ako triabva shte si platia samo niakoi da mi go napishe ili podskaje kak da
> si go napisha. Mnogo mi e speshno. Please help me.

-- 

Ivaylo Toshev
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.itce.com
ITCE Ltd. Ñîôèÿ
+359 2 957 17 83
+359 2 957 17 84

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



lug-bg: Adduser script i PHP

2001-05-10 Thread Marian Popov

 Zdraveite.

Imam goliam problem.
Triabva da napisha script na PHP, koito da addva user na mashinata 
(Slackware Linux 7.1) i ednovremenno s tova da vpisva v MySQL bazi danni.
Shto se otnasia do bazite danni veche sym gotov no ne moga da razbera kak 
da napisha scripta za addvaneto na usera.

Ve3che probvah s md5sum no resultata e razlichen ot nujnia v shadow faila.
Niakoi sluchaino da ime ideia ili da e pisal neshto takova ?
Shte vi byda mnogo blagodaren za vsiakakva informacia ot toia sort.
BTW tyrsih mnogo v phpbuilder.com i v oshte niakolko stranici ot toia sort.

V kraina smetka ako tova ne e vyzmojno da stane s PHP to syglasen sym da 
priema takova reshenie i na perl.

Ako triabva shte si platia samo niakoi da mi go napishe ili podskaje kak da 
si go napisha. Mnogo mi e speshno. Please help me.

-- 
-
Marian Popov
Linux system administrator
http://www.pazardjik.com/
e-mail: [EMAIL PROTECTED]
icq: 9362972
Cel: +359 (88) 975753

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