Re: Jail nullfs how many

2006-12-18 Thread Jahilliya

On 12/18/06, Albert Shih [EMAIL PROTECTED] wrote:


Hi all

I'm starting using jail and I'm using now nullfs (I don't really want use
something like ezjail or other plugplay script, I want understand what
I'm
doing before using this tools).
snip





  How many nullfs I can mount ? Because there are 6 by jail, if

   i'm going to use this many I have 10-20 jail. Can I mounting ~120
   nullfs without problems ?

Regards




Hey,

What i recommend is having a look at ezjail. In doing so, see how it uses
nullfs for multiple jails and use that as a base to create your own, or just
use ezjail itself. ports/sysutils/ezjail

Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: setting serial speed higher than 9600

2006-12-05 Thread Jahilliya

On 12/6/06, David Banning [EMAIL PROTECTED] wrote:


I am attempting to set the serial speed higher than 9600 to use it for a
printer. The stty command does not appear to work;

root# stty -a -f /dev/cuaa0
speed 9600 baud; 0 rows; 0 columns;
...snip


root# stty -f /dev/cuaa0 57600

root# stty -a -f /dev/cuaa0
speed 9600 baud; 0 rows; 0 columns;
lflags: -icanon -isig -iexten ...snip

Any suggestions?



The man page says speed number
 This sets both ispeed and ospeed to number.
Try the command: stty -f /dev/cuaa0 speed=57600
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SATA Raid controller.

2006-10-17 Thread Jahilliya

On 10/17/06, Arek [EMAIL PROTECTED] wrote:


Hello,

Can someone give me an advice about good sata
raid controller?

I'd like have RAID 5.

I thinking about buying RAID INTEL SRCS28X Serial ATA II
Have someone this controller?
How this work with RELENG_6?

Thank you for any advice.

Regards
Arek



3ware and Areca come highly recommended by most.

Have a look in the hardware list on the FreeBSD website for a list of Areca
and 3ware models that are supported.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: LDAP home directories

2006-10-17 Thread Jahilliya

On 10/18/06, Chandler, Jay [EMAIL PROTECTED] wrote:


Does anyone have a way to do home directory mapping through LDAP?  We've
got user directories mounted via NFS to /usr/users and would like to be
able to type in cd ~ted and go to Ted's home directory, perhaps in
/usr/users/students/ted.



We do it in Linux regularly, but I'm trying to lead a migration to
FreeBSD-sadly, haven't done LDAP within BSD of any sort before.



Thanks in advance!



--

Jay Chandler

Network Administrator, Chapman University



Hey,

We are using FreeBSD with Samba+OpenLDAP, each user effectively needs
mapping to a local user so what we've used to give us the ability to type :
  cd ~user
and get their home dir, as well as type :
  id 1
to get their username/groups... is to install nss_ldap, pam_ldap, edit
the files in /etc/pam.d/, there is a lot of good information on this,
have a look at the Samba docs as well as the documentation for
pam_ldap and nss_ldap.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mount Point permissions

2006-08-09 Thread Jahilliya

On 8/10/06, Bob Richards [EMAIL PROTECTED] wrote:

Yeah I noticed that. If I become root, and chown the mounted floppy to

bob:bob, then on all subsequent mounts of that particular media bob has
write
access; but ONLY after root intervention.

What this means however, is that I can NOT set up a work-station where the
user has no root access, and expect that user to effectively use the
floppy
drive. What a pain! The user can format, mount, and read; but until the
media
is choned to her/him, by root,  they can't write.  I didn't have this
problem
with Linux.

What about chowning the permissions on /dev/fd0 to be root:floppyusers,

add a group floppyusers to /etc/group and make bob a member of that group.
Chmod 664 /dev/fd0

See if that works.

Unfortunately I don't have any machines with floppy drives to test with.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SAMBA as Domain Controller on FreeBSD 6.1

2006-08-07 Thread Jahilliya

On 8/7/06, James G. Corteciano [EMAIL PROTECTED] wrote:


Hello everyone!

Good Day!

I am using FreeBSD 6.1/6.x version of Operating System. I plan to
switch my existing PDC Win2k Advanced server to FreeBSD with the
power of Samba. Anybody may I know of how would you setup SAMBA as
PDC in FreeBSD 6.x? I know this is not good question for asking HOWTO
but the good procedures and right samba configurations might lead me
up during installation process.

I am hoping for your kind consideration and favorable response.

Great many thanks.

Regards,

James G. Corteciano



Hey,

After playing with Samba through the years, reading tidbits of documentation
and howto's, nothing compares to the documentation in the Official Samba
Howto. I was having plenty of problems and decided to have a look in this
book, before I did anything more with Samba I simply read it from start to
finish (only skipping the sections relating to Active Directory due to it
being expiremental and likely to change, and I wanted something stable and
tested well).

So, read the Official Samba Howto:
http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/
It's the best.

Jahilliya
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: so for kicks, i just ...

2006-08-06 Thread Jahilliya

On 8/7/06, Jonathan Horne [EMAIL PROTECTED] wrote:


i wonder how many people are brave enough, and do actually installworld
without changing to single user mode?  i wonder what is truly at risk from
not going to single mode?

I've done this plenty of times, and the only time I find I have problems

is when some software is running and has been updated (a daemon like
sendmail or bind).
The main reason (I think) they say to drop to single user mode is to ensure
that nobody is logged in and that as little as possible can intefere with
the upgrade process (rogue processes changing config files while mergemaster
is running).

If you've stopped all processes, logged out all users except yourself,
you'll probably find that your installworlds while not in single user will
go without a problem.

Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Solid modeling

2006-07-25 Thread Jahilliya

On 7/26/06, Peter B [EMAIL PROTECTED] wrote:



Is there any software to model 3D constructions for viewing and
to produce drawings.. ?

I have found irit, brlcad, rayshade.. none seems to solve it sufficiently.
If it were 2D only, xfig could done it. Qcad seem to produce .dwg, but
only
work in 2D aswell.

___




Try blender,
Port description for graphics/blender

Blender is a free and fully functional 3D
modeling/rendering/animation/gaming package. Blender is distributed
without sources, it is exclusively developed and maintained by the Dutch
company NaN.

This software is free to be applied for any purpose, excluding commercial
distribution. For more about this, read the copyright notice included
in the download file (share/doc/blender/copyright.txt).

WWW: http://www.blender.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Adaptec 2410SA Raid and Hot swapping

2006-07-24 Thread Jahilliya

On 7/24/06, Tamouh H. [EMAIL PROTECTED] wrote:


 Hey,

 I have a couple Adaptec 2410SA Raid cards (aac driver) and I
 was wondering if anyone has had any luck with being able to
 hotswap drives in FreeBSD 6?
 If the Adaptec card is no good for hot swapping under
 FreeBSD, what's the recommended brand?

 Thanks
 Daniel

I've 2230SLP which hot-swapped no problem under FBSD 5.4 and I doubt it'll
have issues with 6.x . Though performance write speed is very bad!

Tamouh


Did you use the aaccli tool to initiate/powerdown the drives and rebuild the
array?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Adaptec 2410SA Raid and Hot swapping

2006-07-23 Thread Jahilliya

Hey,

I have a couple Adaptec 2410SA Raid cards (aac driver) and I was wondering
if anyone has had any luck with being able to hotswap drives in FreeBSD 6?
If the Adaptec card is no good for hot swapping under FreeBSD, what's the
recommended brand?

Thanks
Daniel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pkg_add is driving me NUTS!

2006-06-22 Thread Jahilliya

On 6/22/06, Nikos Vassiliadis [EMAIL PROTECTED] wrote:


On Thursday 22 June 2006 10:22, Björn König wrote:
 Remington L schrieb:
  I have two servers, exact same hardware, exact same version of
FreeBSD,
  in this case 4.10. When I run pkg_add blah.tbz on one machine, it
takes
  between
  2-8 hours, on the other 8-10 minutes. These machines are quad-Intel
  2.8Xeons, with 4GB of memory.
 
  Ive done everything from running make world, to md5ing pkg_add, bzip2,
  and tar, there identical.
 
  I noticed on the one thing, on the machine that takes forever, bzip2
is
  only
  using 1-3% load, while the other, which does work, takes 100%. I have
SMP
  compiled into the kernel, well actually, there both using the exact
same
  kernconf.



What about the default nice levels, what is top reporting the nice levels
are on both the servers?

Are other processes hogging the CPU?

Have profiles been modified at all on either machine? (/etc/login.conf)

Try doing nice -n -19 pkg_add ..

Monitor iostat -c9 diskdev to see what speed they're reading from the
disk at
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Please help - adaptec 2820sa not allowing installation

2006-06-18 Thread Jahilliya

On 6/19/06, Ensel Sharon [EMAIL PROTECTED] wrote:


I did all my due diligence, I contacted freebsd-fs and _made sure_ that
even though the 2820sa is not listed by name in the HCL, that I could take
a 6.1-RELEASE cd and install freebsd on a 2820sa.

I was _assured_ that these cards are supported in 6.1-RELEASE, that all is
well, and I could install and that was that.

Now I boot off of the 6.1-RELEASE cd, and sysinstall tells me no disks
found.

I tried safe mode, same result.  I tried disabling all unnecessary items
from the BIOS (onboard sata, USB, com2, LPT) and same result.

FreeBSD 6.1-RELEASE iso just does not find a disk controller.  Period.

So ... what do I do ??  I see no way of adding a driver to sysinstall
.. .and even if I did I have no idea what to put there, as the published
driver from adaptec is only for 5.x.

I have to assume that aac is built into the sysinstall kernel, so what
gives ?  Why can't sysinstall see my 2820sa cards ? (and drives)


Try hitting scroll lock and then page up to view the dmesg or go to
the emergency console and run dmesg to see if it picked up any aac
devices. You may need to load the module yourself, you should be able
to do this from the emergency console (not sure tho).

I've steered clear of the *20SA series of cards from Adaptec (mainly
buying the 2410SA) for the two facts, SATA2 isn't listed anywhere on
the hardware list and only the xx10SA series SATA cards are listed.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Please help - adaptec 2820sa not allowing installation

2006-06-18 Thread Jahilliya

On 6/19/06, John Kozubik [EMAIL PROTECTED] wrote:



On Mon, 19 Jun 2006, Jahilliya wrote:

 Try hitting scroll lock and then page up to view the dmesg or go to
 the emergency console and run dmesg to see if it picked up any aac
 devices. You may need to load the module yourself, you should be able
 to do this from the emergency console (not sure tho).

 I've steered clear of the *20SA series of cards from Adaptec (mainly
 buying the 2410SA) for the two facts, SATA2 isn't listed anywhere on
 the hardware list and only the xx10SA series SATA cards are listed.


Yes, that's a good point - which is why I was very cautious and made
doubly sure to ask very clearly on this mailing list can I install
freebsd 6.1 on a 2820sa even though it is not in the HCL and I was
assured that the answer was yes.

So you are saying you think that the 6.1-RELEASE iso does not have aac
built into it ?  After 4-5 years of it being in every install media, even
floppies, you think it suddenly is just not there anymore ?  I find that
difficult to believe...

I'll check the dmesg in scroll lock to be sure, but I am pretty sure it
comes up with nothing aac-related.


I'm saying it's a possibility if you're not seeing anything AAC
related in the dmesg and you should make sure that it is in the kernel
or loaded as a module by running kldload (kldload will give some error
about symbol already existing if it is built into the kernel).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Please help - adaptec 2820sa not allowing installation

2006-06-18 Thread Jahilliya

Ok, aac is in the dmesg.

I can see both 2820sa cards in the dmesg, and I see no errors, etc. -
there are just no drives listed in dmesg.

My setup is 8 500 Gb drives in a single raid-6 array, size ~2.8TB.  Any
problems with that ?  Perhaps sysinstall cannot deal with a 2TB drive
?  There are no other drives in the system besides the single 2.8TB raid 6
array ...



Have you got any other drives you can attach to the raid?

If so, disconnect the 8 drives connected, connect up a couple that are
not part of the raid and configure them as a simple raid 1 and see if
the installers sees that raid. Or try any combination in drives to
bring the raid size down below 2TB (I'm sure this limitation has been
fixed.)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: restoring deleted files

2006-06-08 Thread Jahilliya

On 6/9/06, Phil Sweeney [EMAIL PROTECTED] wrote:

Can you tell me a simple way of retrieving recently deleted files?


There is no simple way.

And it depends on whether the inodes the file existed on have been overwritten.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Replacement for Adaptec 2200s

2006-06-05 Thread Jahilliya

On 6/6/06, Kent Ketell [EMAIL PROTECTED] wrote:

All,

My question to you all is this:  What RAID controller is available for
use in FreeBSD 4.x that offers the same type of functionality as the AAC
family did?


I've had excellent success with the 2410SA and the AAC driver under
5.x and above (havn't ever needed to try them on the 4.x series).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: jails or chroot?

2006-05-09 Thread Jahilliya

On 5/9/06, Michael Grant [EMAIL PROTECTED] wrote:


I host a bunch of websites on my box.  Recently I had some problems
with file access problems with php which caused me to look into
putting each of my clients into their own jail or chroot.  I have
roughly 100 different domains I'd need to split.

Has anyone done this for more than a handfull of clients?  Using
apache and their mass virtual hosting, 100 domains is a breeze.  But
with a jail or chroot, I need a separate apache process for each
domain.  This is going to mean hundreds of apache processes.  This
seems unreasonable.



Agreed that creation hundreds of chroots or jails would be an administrative
nightmare. File access can be solved with suexec (compile apache with suexec
enabled), this means that for each virtual host entry in your apache config
you add User and Group (check http://httpd.apache.org/docs/2.2/suexec.html or
your apache version doc set). This will make each apache process run as the
user specified in virtual host entry (not www) allowing you to restrict
their access to files with filesystem ACL's and even ugidfw, you could also
then setup process/memory restrictions in /etc/login.conf

It will also make updating pretty much as standard as it is now.

Give it a burl if it sounds like what you need.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kern.randompid: jot generation senseful?

2006-05-09 Thread Jahilliya

On 5/9/06, [EMAIL PROTECTED]@mgEDV.net [EMAIL PROTECTED] wrote:


[asked on -security before, but no answer, maybe here's more traffic ;-)]

hi,

is a random pid generation really a security enhancement?

if yes, would it make sense to setup something like:
-- sysctl kern.randompid=`jot -r 1 500 2000`
in cron to be executed every X mins/hrs?

and finally, what are the recommended minimum (security)
and maximum (performance) values for kern.randompid?



You can't change it once the system is running me thinks, so you'd run it at
boot and that'd be that...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


System Panic

2006-03-09 Thread Jahilliya
Hey,

Got this error on FreeBSD 6.0-RELEASE-p5

panic: lockmgr: locking against myself

System was downloading some ports at the time (not actually compiling).

It's a Pentium 4, 3ghz on a Intel PSNLK motherboard.

Hyperthreading is enabled.

I am using the GENERIC kernel.

I installed from scratch onto the SATA 80gb Seagate disk.

cvsup, and did make buildworld  make buildkernel  make installkernel
shutdown now
make installworld
mergemaster

Was running alright, built a couple jails yesterday without any issues.

Uptime at time of panic was 19 hours, 27 minutes and 34 seconds.

Anyone seen this before? Let me know if you want any more details.

I have a crashdump and am currently learning howto inspect at the moment.

Thanks
Daniel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: System Panic

2006-03-09 Thread Jahilliya
On 3/10/06, Kris Kennaway [EMAIL PROTECTED] wrote:

 On Fri, Mar 10, 2006 at 08:38:35AM +0800, Jahilliya wrote:
  Hey,
 
  Got this error on FreeBSD 6.0-RELEASE-p5
 
  panic: lockmgr: locking against myself

 Try updating to 6.1, many of these panics have been fixed.


It's going to be for a production server and 6.1 is still under development
so I'd rather not at this time

I did however find out what caused the panic, it was my friend unionfs. I
had a unionfs mount setup for the system distfiles to mount over the
distfiles directory in one of my ports.

I did a simple test: mount_unionfs /tmp/dir1 /tmp/dir2
touch /tmp/dir2/file
mv /tmp/dir2/file /tmp/dir2/file1

The system immediately panicked with the exact same error...

I'll move on up to 6.1 when it's stable :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: System Panic

2006-03-09 Thread Jahilliya
On 3/10/06, Kris Kennaway [EMAIL PROTECTED] wrote:

 On Fri, Mar 10, 2006 at 09:48:08AM +0800, Jahilliya wrote:
  On 3/10/06, Kris Kennaway [EMAIL PROTECTED] wrote:
  
   On Fri, Mar 10, 2006 at 08:38:35AM +0800, Jahilliya wrote:
Hey,
   
Got this error on FreeBSD 6.0-RELEASE-p5
   
panic: lockmgr: locking against myself
  
   Try updating to 6.1, many of these panics have been fixed.
 
 
  It's going to be for a production server and 6.1 is still under
 development
  so I'd rather not at this time
 
  I did however find out what caused the panic, it was my friend unionfs.
 I
  had a unionfs mount setup for the system distfiles to mount over the
  distfiles directory in one of my ports.

 OK, that's documented to be broken.



I know now, is a shame it worked fine for me under 4.x and now it spits the
dummy under 6 :(
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: A question on permissions

2006-03-06 Thread Jahilliya
On 3/7/06, Pat Maddox [EMAIL PROTECTED] wrote:

 I want to make a directory writable by one user, and readable by
 another.  It should be owned by the web server UID, and the group
 should be the gid of my normal login user.

 %ls -ld /home/pergesu/logs
 drwxr-x---  6 www  pergesu  512 Feb 23 13:05 /home/pergesu/logs

 However, the www user apparently can't read/write to that dir.  I gave
 'www' a real shell just to try it out:
 %sudo su www
 %ls -ld /home/pergesu/logs
 ls: /home/pergesu/logs: Permission denied

 I don't get why it's doing Permission denied there.  www has r/w/x
 access to that dir.  It doesn't, however, have read access to
 /home/pergesu, so that's my only guess.  I don't want to make
 /home/pergesu readable by everyone though of course.  Isn't that what
 permissions are all about?


Unfortunately, if you cannot access any given directory, you cannot access
any of it's children either.

For anything to access /home/pergesu/logs the user must have execute
permissions on /home/pergesu (not read).

Jal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]