[Cooker-firewall] Re: [SNF] cooker iso ...

2001-12-20 Thread Florin

psyklone [EMAIL PROTECTED] writes:

 hello all 
 
 i'm new to cooker (and the list) and i'm wanting to check it out. i've
 pulled the entire /cooker directory down to a machine from one of the pub
 mirrors and i want to make an iso. the catch is, the box i've pulled the
 cooker dir down to is a windows machine and i'm not sure exactly what i need
 to do to create an iso. i know how to do it on a linux machine, but that
 doesn't do me much good here. any ideas?
 
 thanks in advance,
 
 -psyklone
 

just mount that directory on a linux box and do it on linux ...

-- 
Florin  http://www.mandrakesoft.com




Re: [Cooker-firewall] naat-frontend-www-en-0.5-3.1mdk

2001-12-20 Thread Florin

bascule [EMAIL PROTECTED] writes:

 i discovered i didn't, copies of the previous /etc/passwd and /etc/group had 
 them so i renamed them but that didn't work so i put them back, do i use 
 useradd to create them and if so what about passwords and permissions?
 
 bascule
 
  make sure you have a user called admin and a group httpd-naat in
  /etc/passwd and /etc/group files, and then update the package again.
 

simply use the infos provided by the naat-backend post-scripts:

example:

--
grep -qw 'naat-console' /etc/shells  || \
echo /usr/bin/naat-console  /etc/shells

# Add admin group exist if doesn't exit
grep -q '^admin:' /etc/group || \
/usr/sbin/groupadd admin 2 /dev/null


# Add the admin user (for console) if doesn't exist
grep -q '^admin:' /etc/passwd  || \
/usr/sbin/useradd -c Administrator  -g admin -G adm -d /home/admin \
-s /usr/bin/naat-console admin 2 /dev/null

grep -q '%admin' /etc/sudoers || \
echo %admin ALL=(ALL) NOPASSWD: /usr/bin/event-handler.pl , 
/usr/share/naat/scripts/*  /etc/sudoers;
#echo %admin ALL=(ALL) NOPASSWD: /usr/bin/event-handler.pl , 
/usr/share/naat/scripts/sumtraffic  /etc/sudoers;
/bin/chmod 0440 /etc/sudoers

-
do the same thing for httpd-naat

grep -q '^admin:' /etc/passwd || \
  /usr/sbin/useradd -c 'Administrator' \
-d /home/admin -G adm -s /bin/bash admin


grep -q '^httpd-naat:' /etc/passwd  || \
/usr/sbin/useradd -c Httpd Naat Admin -s /bin/bash -M \
 -d /var/www-naat -G admin,apache httpd-naat

-- 
Florin  http://www.mandrakesoft.com