Re: Very strange behavior of ls user groups

2003-02-28 Thread Unix Tools
Hi,
In every virtualhost please try the User directive.
User USERNAME
And enable apache suexec. This is the most secured way to run apache.

Cheers


- Original Message - 
From: Dmitry Popov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 05:18 AM
Subject: Very strange behavior of ls  user groups


 Greetings!
 
 I've got some odd problems with FreeBSD 4.5:
 
 1. invocation of ls -l or other programs like tar tvzf, that seems
 to be use the same output library, causes a core dump. althrough, ls
 and tar xvzf work fine. are there any ways to fix the problem without
 rebuilding whole system?
 
 2. apache has its own group and each client, that needs access via HTTP,
 has its own group and apache as group guest (then apache can read user's
 files while other users can not). the problem: it seems to be, user
 (apache) can't be guest in more than 14 groups. is there any workarounds
 and reasons for such kind of limitations?
 
 great thanks for help and advices!
 
 please respond to [EMAIL PROTECTED]
 
 
 --
   Best regards, Dmitry Popov
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: mysql add host

2003-02-07 Thread Unix Tools
Hi,
Try this
update user set Host='%' where Host='foobar';
update db set Host='%' where Host='foobar';

Cheers






- Original Message -
From: Brian Henning [EMAIL PROTECTED]
To: freebsd [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 09:30 PM
Subject: mysql add host


 Hello,
 I just installed mysql and i would like to allow all hosts to acess the
 databases on my server.

 ERROR 1130: Host 'foobar' is not allowed to connect to this MySQL server

 what can i do to remedy this problem?

 thank,
 b


 ps.. the command:.
 telnet foobar 3306

 Host 'trinity.the-matrix.net' is not allowed to connect to this MySQL
server

 Connection to host lost.


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: FreeBSD 5.0-RELEASE disabling ssh access

2003-01-23 Thread Unix Tools
Hi,
Add the line /sbin/nologin to /etc/shells

Cheers

- Original Message -
From: Mantas Kriauciunas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 10:09 AM
Subject: FreeBSD 5.0-RELEASE  disabling ssh access


 Heya!
 ermmm... I just Installed 5.0-RELEASE two days ago and i have a question
about adduser.
 i am using adduser to add users. on my 4.5 machine i was able to choose,
to let users use ssh access or don't let them use by adding shell: no , what
i found in 5.0 that there is no such choise, only this:
 Shell (sh csh tcsh bash) [sh]: /sbin/nologin
 adduser: ERROR: Invalid shell selection. Using default shell /bin/sh.

 so how to disable ssh access for the user? i looked in /etc/passwd , some
accounts have /sbin/nologin but i wasn't able to do old stile like 4.5 used
to let me do. so how should i fix this one?
 Thanks for your replies!
 mNTkz

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: cpanel and problems with adduser

2003-01-18 Thread Unix Tools
Hi,
if the username is jack

fire the command

pw usermod jack -s /bn/csh
OR whichever shell you want the user to be in

and from /etc/shells remove the entry /usr/local/cpanel/bin/noshell

Cheers



- Original Message -
From: mNTKz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 19, 2003 03:44 AM
Subject: cpanel and problems with adduser


 Hey!
 i had problem with cpanel, well not a problem but. I installed it and then
 saw the price for it :) my server is just for my self and my friends to
 learn freebsd. Now i have problem. I have few users that have account on
 that server and they have httpd ssh and ftp. Now when i deleted cpanel,
 somehow managed to do that. It was pain in the butt... And now i use:
 adduser --silent ... user adds successfully, but i can't log in through
ftp.
 what i found out is one message that was weird for me. Maybe that helps:
 Shell: /usr/local/cpanel/bin/noshell not executable!
 Enter username [a-z0-9_-]:

 ok what should i do now?
 how to fix it? any ideas guys?
 this is my second email to this mailing list...and first time i subscribed
 it. so i don't know how many ppl are hare.
 Thanks everyone for help!

 Mantas Kriauciunas
 --
 mNTKz.NeT

 
 Message sent using UebiMiau 2.7.2


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Setting Permissions For /etc and /etc/mail

2003-01-12 Thread Unix Tools
Hi,

Check 
ee /etc/mtree/BSD.root.dist
they chmod /etc, /etc/mail to 755

Cheers


- Original Message - 
From: Yeah! [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 11, 2003 01:04 AM
Subject: Setting Permissions For /etc and /etc/mail


 
 Can someone tell me the chmod commands I need to type
 to get the permissions to match those below:
 
 drwxr-xr-x  16 root  wheel  2560 Jan  6 10:01 /etc/
 drwxr-xr-x   2 root  wheel  1024 Dec 25 18:47
 /etc/mail/
 
 
 Thanks,
 JP
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Renaming files with spaces in the name to files without spaces..

2003-01-09 Thread Unix Tools
Conider the file freebsd help.doc

mv freebsd\ help.doc freebsdhelp.doc



- Original Message -
From: Gary W. Swearingen [EMAIL PROTECTED]
To: BigBrother (BigB3) [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 10:05 PM
Subject: Re: Renaming files with spaces in the name to files without
spaces..


 Paste this into your shell:

 XXX=RESULTS OF JAN 01 2002.txt 
 YYY=${XXX%% }
 ZZZ=$(echo ${YYY} | tr ' ' '_')

 for III in $XXX $YYY $ZZZ; do
 echo '$III'
 done


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Pw - name too long ??

2002-12-29 Thread Unix Tools
Hi,

In /usr/src/sys/sys/param.h

Adjust MAXLOGNAME to the new value (don't forget the NULL).
That should do it... rebuild the kernel.

Cheers.



- Original Message -
From: Steve Warwick [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 29, 2002 02:44 PM
Subject: Pw - name too long ??


 Hi All,

 I am trying to add a user name with the pw command and get the name too
 long error after 15 or 16 characters. However, I also use Webmin which
has
 allowed me to use much longer user names. Is there a switch or setting I
am
 missing?

 Example:
 pw adduser longdomain-henry2 -w random -d /home/longdomain/henry2 -g
 nogroup -s /sbin/nologin -c henry two -h 0

 Suggestions?


 TIA


 Steve


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Mail?

2002-11-30 Thread Unix Tools
Hi,
1) Install qmail from ports, It get installed in the /var/qmail directory.
2) Install vpopmail from ports. Set the vpopmail directory to
/home/vpopmail.
2) Add an entry at the end if the inetd.conf file
pop3stream  tcp nowait  root/var/qmail/bin/tcp-env
tcp-env /var/qmail/bin/pop3
3) Now we need to create a file /var/qmail/bin/pop3. Open a new file
/var/qmail/bin/pop3 in an editor. Add the below line in the file.
/var/qmail/bin/qmail-popup your.hostname.com
/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21
where your.hostname.com should be replaced by the hostname of your
server.
4) Give a HUP signal to the inetd process.

Thats It.
Your pop3 server will be up and running.

You can mail me back if you are stuck at any point.

Cheers

- Original Message -
From: aSe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 01, 2002 02:02 AM
Subject: Mail?


Hello,
I'm trying to find a guide/walk-through/howto on installing postfix/qmail on
freebsd, along with a pop3 server. I've been searching on google for awhile
now, anything i've found is old and/or doesn't talk about setting up pop3.

Thank you!
aSe [[EMAIL PROTECTED]]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: how to ssh as root

2002-11-28 Thread Unix Tools
Hi,

In /etc/ssh/sshd_config
PermitRootLogin no
To
PermitRootLogin yes


- Original Message -
From: Unix Tools [EMAIL PROTECTED]
To: Zhihui Zhang [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 10:44 AM
Subject: Re: how to ssh as root


 Hi,

 In /etc/ssh/sshd_config
 PermitRootLogin no
 To
 PermitRootLogin yes

 - Original Message -
 From: Zhihui Zhang [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 27, 2002 10:28 PM
 Subject: how to ssh as root


 
  I used to ssh as root to a FreeBSD box and uses the root password.
  Today, I reinstall 4.5-Release and try the same thing:
 
  $ ssh -l root mymachine
  otp-md5 100 pl6491 ext
  S/Key Password:
 
  I was expecting something like:
 
  $ ssh -l root mymachine
  root@mymachine's password:
 
  I did set PermitRootLogin to yes in file /etc/ssh/sshd_config. Why this
  change?
 
  Thanks.
 
  -Zhihui
 
 
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of the message
 

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: how to ssh as root

2002-11-27 Thread Unix Tools
Hi,

In /etc/ssh/sshd_config
PermitRootLogin no
To
PermitRootLogin yes

- Original Message - 
From: Zhihui Zhang [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 10:28 PM
Subject: how to ssh as root


 
 I used to ssh as root to a FreeBSD box and uses the root password.
 Today, I reinstall 4.5-Release and try the same thing:
 
 $ ssh -l root mymachine
 otp-md5 100 pl6491 ext
 S/Key Password:
 
 I was expecting something like:
 
 $ ssh -l root mymachine
 root@mymachine's password: 
 
 I did set PermitRootLogin to yes in file /etc/ssh/sshd_config. Why this
 change?
 
 Thanks.
 
 -Zhihui
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Adding users in FreeBSD 4.7

2002-11-24 Thread Unix Tools
Hi,
In /etc/adduser.conf
The line usernameregexp should look like
usernameregexp = '^[a-z0-9_][a-z0-9_-]*$'

If not replace it with the above line and then add a user.
on running the adduser script it will first ask for 
Usernames must match regular expression:
[^[a-z0-9_][a-z0-9_-]*$]:

JUST HIT ENTER ON THE PROMPT.

Cheers



- Original Message - 
From: KevinG [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 24, 2002 11:44 PM
Subject: Adding users in FreeBSD 4.7


 Hello,
 
 I installed 4.7 on a new box and when I try to add users (by
   running adduser) I smack into a roadblock;
   the system asks that I enter the username, which I do,
   and it continues to insist that I enter the username again, over and
   over...
   It seems the regular expressions feature is balling me up and I am
   unsure how this fits into the scheme.
   Man adduser and pw haven't helped me much.
 
 -- 
 Best regards,
  KevinG  mailto:[EMAIL PROTECTED]
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: csh conf

2002-11-06 Thread Unix Tools
Hi,
I suppose you are not assigned a shell.
Please finger username to find out which shell you are being assigned.


- Original Message - 
From: Ivan S. Anisimov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 02:02 AM
Subject: csh conf


 Hello !
 
 Please help: when I try to login via a dialin tty,
 host issues 'logout' immediately after
 authentification. Looks like admin of the host done
 something like
 set a=`tty`
 if ($a == '/dev/ttyd0') then
 logout
 endif 
 in one of csh scripts.
 I've checked all user-readable files (/etc/csh.cshrc,
 /etc/csh.login, /etc/csh.logout, ~/.login, ~/.profile
 etc.) for stuff like that. Nothing. Changing shell to
 bash solves this problem, still I would like to find
 out, where this 'logout' lives. Any ideas?
 
 Many thanks in advance,
 Ivan
 
 __
 Do you Yahoo!?
 HotJobs - Search new jobs daily now
 http://hotjobs.yahoo.com/
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Setting permissions for a user

2002-10-26 Thread Unix Tools
Hi,
Assign the user an rbash shell.
Quite restrictive.
Thank You.

- Original Message -
From: Adam Bender [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 26, 2002 10:30 AM
Subject: Setting permissions for a user



 I would like to create an account to be used for FTP.  Since the password
 will be known by a couple people / could be sniffed since it's not sftp, I
 would obviously like to limit the powers of this user as much as possible.
 Specifically, I would like it to be able to create and read files in it's
 own directory, and that's it.  No execution capabilities, unable to read
 files not in its directory, etc.  What's the best way to do this?

 Thanks,

 Adam


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: DNS server

2002-10-26 Thread Unix Tools
Hi,
Automate the conf file creation. I have done it.A perl script OR a c script
will do.

Thank You.

- Original Message -
From: ann kok [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 24, 2002 09:15 PM
Subject: DNS server


 Hi all

 I have question about DNS server:

 I have more than 300 domain names and want to all
 domain names pointing to one ipaddress

 I don't want to create 300 zones separately

 ls it possible to do it one zone to have this feature?

 Thank you for your help


 __
 Do you Yahoo!?
 Y! Web Hosting - Let the expert host your web site
 http://webhosting.yahoo.com/

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: FreeBSD mailing lists and DNS

2002-10-16 Thread Unix Tools

dig at a.gtld-servers.net

dig @a.gtld-servers.net YOURDOMAINNAME


- Original Message - 
From: Carlos Carnero [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 16, 2002 07:23 PM
Subject: OT: FreeBSD mailing lists and DNS


 Hi,
 
 I can't send email to the FreeBSD lists because my DNS
 configuration is hosed--the bit from my ISP, not my
 own bind :)
 
 Anyway, is there a site that could tell me what the
 nameservers outside my network see for my domain?
 
 Best regarads,
 Carlos.
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Slightly OT: How to remove an odd file...

2002-10-14 Thread Unix Tools

cd to the directory where the file exists
write a perl script

#!/usr/bin/perl
unlink;
exit(0);


- Original Message - 
From: Brian McCann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, October 13, 2002 07:43 PM
Subject: Slightly OT: How to remove an odd file...


 I've got an interesting question for you all.  I've got a file who's
 name is...3 blank spaces.  It shows up when I do an ls -la, and I
 can get it's inode # (it's in RedHat...a box I'm going to convert to
 FreeBSD real soon)...does anyone know how to remove a file based off of
 an inode #?
 
 --Brian McCann
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: How to create another account with root privileges ?

2002-10-10 Thread Unix Tools

Just create the account and add it to /etc/group after root
for eg.

wheel:*:0:root,myuser1,myuser2,myuser3


- Original Message -
From: Pranav A. Desai [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 09, 2002 11:06 PM
Subject: How to create another account with root privileges ?


 Hi all!
 How can I create a user account that can function like a root
 account with the same prilieges ? I need to create three such account. Is
 it possible ?

 Thanks for the help

 -Pranav

 ***
 Pranav A. Desai

 Home :- (937) 294 1381
 ***

 On Thu, 3 Oct 2002, Sicco Miedema wrote:

  At 11:43 3-10-2002 +0200, Nelis Lamprecht wrote:
  I have a Accton 100baseTX nic that uses the RealTek 8129/8139 chipset.
The
  nic works fine if I plug it into a 10mbit hub but as soon as I plug it
  into a switch ( 3Com Baseline 10/100 ) which I use internally for
ftp'ing
  it starts transferring data ok and then slowly dies. After awhile it
will
  not permit me at all to connect and I have to manually bring down the
  interface using ifconfig and then bring it back up before I can
reconnect.
  I have configured my kernel with the correct drivers ( device rl ).
  I have 2 identical nic's in the same machine and they both give the
same
  problem and I have tried several ftp clients. I'm using 4.6 Stable.
  
  Has anyone experienced similar problems with these nic's ? Any help,
  suggestions would be appreciated.
 
  I had the same problems with two RTL8139 nic's. The problem was easily
  solved by locking the nic's to one speed (100mbit or 10mbit) This is
done
  with ifconfig I believe.
 
  Sicco Miedema
 
 
 
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of the message
 


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: named rejecting all kinds of serials

2002-09-28 Thread Unix Tools

Hi,
The serial no. has nothing to do with the eerors.
Please provide the zone file so that the error can be pointed out.

Thank You.

- Original Message -
From: Janine C.Buorditez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 28, 2002 05:19 PM
Subject: named rejecting all kinds of serials


 hi.

 Sep 28 13:22:50 ninja named[87]: master zone terrabionic.com (IN)
rejected due to errors (serial 2002092801)

 now, isn't this the valid serial for today?

 i've tried all kinds of dates; past, current and future. with zero, one
and two
 digits in the last field.

 this is quite annoying as everything on my system depends on
terrabionic.com
 being functional.

 thanks.

 --janine

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Apache CGI problem

2002-09-26 Thread Unix Tools

1) Check /vsr/log/messages for any fatal erors when teh script is run
2) also /var/log/httpd-error.log
3) does your perl scripts run chrooted
4) if yes chmod the scripts 755




- Original Message -
From: Ihsan Junaidi Ibrahim [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 07:49 AM
Subject: Re: Apache CGI problem


 Hello all,

  Personally, the only time I've ever seen error 500 is when either the
  script had syntax errors, the permissions were set incorrectly, or the
  script was transferred as a binary file when it should've been
  transferred as ASCII. If you're sure that all three of those issues
  don't pertain to your situation, then I'm not sure what the problem
  is.

  Did you possibly make some system changes on the day they quit working?

 I  believe  so.  I  did  change a few ipfw rules, a make world and
reworking the
 quotas. The scripts was done on the system itself, the permissions were
right
 and the syntax were definitely correct.

 I  can't  log  in into my qmailadmin, sqwebmail and do administrative
tasks now.
 I'm going to reinstall apache if that's going to help in any way.

 --
 Thank you for your time,
 Ihsan

 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.yahoo.com

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: how to delete file named ?'??

2002-09-26 Thread Unix Tools

Perl script
cd to the directory where the file with this wierd name is located

write a perl script del.pl

#!/usr/bin/perl
unlink   ?'??  ;
exit(0);

Thats it.



- Original Message - 
From: Tomasz Koziara [EMAIL PROTECTED]
To: freebsd-questions [EMAIL PROTECTED]
Sent: Wednesday, September 25, 2002 06:04 PM
Subject: how to delete file named ?'??


 Hi
 
 How to delete file named?'?? ?
 This is probably trivial but I tryed and
 still cannot figure it out.
 Thanks.
 
 Tom
 
 
 
 Clearasil rozdaje 10 000 Plyt CD z hitami muzyki POP za darmo!
 Chcesz jedna, kliknij. http://a1.o2.pl/rdr.php?banner_id=625
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Chroot

2002-09-26 Thread Unix Tools

rbash is the best option.
I was quite succecful with it

- Original Message -
From: Gerard Samuel [EMAIL PROTECTED]
To: Brossin Pierrick [EMAIL PROTECTED]
Cc: FreeBSD Questions [EMAIL PROTECTED]
Sent: Tuesday, September 24, 2002 11:21 PM
Subject: Re: Chroot


 Your first half made total sense, and I was able to lock the root user
 in /home/developer when
 chroot was executed.
 Your second half however, is not clicking with me at the moment.  Here
 is what I did
 1.  Under /home/developer/bin create a new file (my_sh) with this -
 #!/bin/sh
 /home/developer/bin/sh
 chroot /home/developer/

 2.  Chmod the file 555, chown root:wheel
 3.  Enter vipw, and change the user developer shell to
 /home/developer/bin/my_sh

 With these modifications, I can ssh into the account, but I can still
 break root by cd'ing out of the home directory.

 Any advise would be greatly appreciated...
 Thanks


 Brossin Pierrick wrote:

 Hi,
 
 || Im trying to figure out how to restrict users from leaving their home
 || directories.
 || I would enter the new directory /usr/home/developer and issue the
 || chroot command -
 || hivemind# chroot /usr/home/developer
 || chroot: /bin/csh: No such file or directory
 
 It's because a chrooted directory is like the root dir of your system !
 You have to create 'bin' 'etc' and stuff into /usr/home/developer.
 You should also copy csh into /usr/home/developer/bin.
 
 Your chrooted system will be completely independent of your system.
 This means if the user developer logs on, he won't be able to access the
 real /etc for example.
 
 I hope I'm clear enough.
 
 www.google.com for more info .. just type in freebsd chroot.
 
 || What am I doing wrong??
 || Also when this is set, how do I make it persist throught reboots.
 || Make my own script in /usr/local/etc/rc.d ???
 || Thanks for any insight you may provide
 
 Just create a shell script and run it instead of running tcsh or sh or
...
 run 'vipw' and change it.
 
 Cya
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
 
 
 

 --
 Gerard Samuel
 http://www.trini0.org:81/
 http://dev.trini0.org:81/




 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Connecting to mysqld

2002-09-26 Thread Unix Tools

ya
flush privileges OR restart the mysql server

- Original Message - 
From: Carl-Johan Kihlbom [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 02:19 AM
Subject: Connecting to mysqld


 I'm having trouble connecting to mysqld on my FreeBSD server.
 
 If i connect as root using mysql -u root -p it works just fine, but if 
 I try as any other user, e.g. mysql -u kihlbom -p I get the following 
 error message:
 
 ERROR 1045: Access denied for user: 'kihlbom@localhost' (Using 
 password: YES)
 
 I created the users with GRANT ALL ON *.* TO kihlbom IDENTIFIED BY 
 'password';. The users show up fine in the mysql.user table.
 
 Is there a config file somewhere that states that only root may connect?
 
 How can I allow connections from all users with a valid password?
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: can't intall PERL module

2002-09-20 Thread Unix Tools

Just install it from ports
cd /usr/ports/devel/p5-Date-Calc
make clean
make
make install


- Original Message -
From: Len Conrad [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 19, 2002 03:15 AM
Subject: can't intall PERL module


 fbsd 4.6.2

 perl -MCPAN -e 'install Date::Calc'

 t/f029..ok
 t/f030..ok
 t/f031..ok
 t/f032..ok
 t/f033..ok
 t/f034..Use of uninitialized value at t/f034.t line 332.
 Use of uninitialized value at t/f034.t line 332.
 FAILED tests 252-253
  Failed 2/259 tests, 99.23% okay
 t/f035..ok
 t/f036..ok
 t/m001..ok
 t/m002..ok
 t/m003..ok
 t/m004..ok
 t/m005..ok
 t/m006..FAILED tests 10-11
  Failed 2/33 tests, 93.94% okay
 t/m007..ok
 t/m008..ok
 t/m009..ok
 t/m010..ok
 t/m011..ok
 Failed Test  Status Wstat Total Fail  Failed  List of failed
 --
-
 t/f034.t2592   0.77%  252-253
 t/m006.t 332   6.06%  10-11
 Failed 2/48 test scripts, 95.83% okay. 4/2960 subtests failed, 99.86%
okay.
 *** Error code 2

 Stop in /var/.cpan/build/Date-Calc-5.1.
/usr/bin/make test -- NOT OK
 Running make install
make test had returned bad status, won't install without force

 First time in several dozen times that this has failed.  3 or 4 other
 modules installed ok.

 Suggestions?

 Len



 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Company mail system question...

2002-09-20 Thread Unix Tools

Qmail is the best option as a mail server
qmail+vpopmail+qmailadmin+sqwebmail


- Original Message -
From: Michael Pelletier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 20, 2002 04:35 AM
Subject: Company mail system question...


 I am reseaching for a mail system for my company. I would like some
 information for my research. Basically, I would need POP3, IMAP, etc
support
 ans many of the client are windoze based. Thanks in advance.

 Michael Pelletier



 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: weird files

2002-09-20 Thread Unix Tools

use the pilot software.
I think you can install it from ports

- Original Message - 
From: mingo lu [EMAIL PROTECTED]
To: freebsd-questions [EMAIL PROTECTED]
Sent: Friday, September 20, 2002 08:06 AM
Subject: weird files


 Hi:
 
 i have two weird files under my home directory; one is
 file named -bash.gmon and another one is xy ds.
 how could i remove them? rm just won't work ...
 
 tia
 
 
 
 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.yahoo.com
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message