Re: File permission question
From: Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED] How Can ThisBe wrote: My question is, when I make a new file or directory in ~/public_html (with chown tigger:www), the file is made with the following permission: -rw-r--r-- 1 tigger www 0 Nov 15 13:42 public_html/test1.php How can I make new files without the world readable flag set, within the public_html directory? Change your umask. But I only want the creation of new files and directories in the ~/public_html folder to inherit these permission. Everything else should stay the same. I guess if this is the only solution it would do, but, I was hoping for a per-directory setting. _ Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
File permission question
Hi, I've just noticed a small issue, which I'm sure others are aware of. For apache to server users webpages, apache need to be able to read files and directories. So we have something like the following (by default) on FreeBSD; [EMAIL PROTECTED]:~% ls -Al ./ public_html/index.php | grep pub -rw-r--r-- 1 tigger tigger 16 Mar 24 2002 public_html/index.php drwxr-xr-x 12 tigger tigger 512 Aug 14 02:04 public_html/ However, the following set-up is a little more secure (users can not read other users includes files for a start) and works fine; [EMAIL PROTECTED]:~% ls -Al ./ public_html/index.php | grep pub -rw-r- 1 tigger www 16 Mar 24 2002 public_html/index.php drwxr-x--- 12 tigger www 512 Aug 14 02:04 public_html/ My question is, when I make a new file or directory in ~/public_html (with chown tigger:www), the file is made with the following permission: -rw-r--r-- 1 tigger www 0 Nov 15 13:42 public_html/test1.php How can I make new files without the world readable flag set, within the public_html directory? _ Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
iPAQ h1930 and FreeBSD 5.1 - is it possible?
Hi, I have a iPAQ h1930 (handheld PC running Windows Pocket PC 2003) and was wondering how I could connect it to my FreeBSD 5.1 laptop using the USB cable. I was hoping I could simply mount the iPAQ like a digital camera. Then I thought it maybe something more like TCP/IP over USB. Anyway, I'm stuck and wondering if it is possible. When I plug in the USB cable I get the following message (which looks promising to me :]). uhub1: Texas Instruments General Purpose USB Hub, class 9/0, rev 1.10/1.01, addr 2 uhub1: 2 ports with 2 removable, self powered ugen0: Hewlett Packard product 0x1016, rev 1.00/0.00, addr 3 _ Get less junk mail with ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: iPAQ h1930 and FreeBSD 5.1 - is it possible?
Wow, I never even thought to check the ports. Thanks heaps! From: Antoine Jacoutot [EMAIL PROTECTED] Look at the SYNCE project. /usr/ports/palm/synce-libsynce Antoine _ Protect your inbox from harmful viruses with new ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Using a fast PC for builds for slow PC
I have two PC, a PIII 700 and a P100 (with only 24meg RAM). I would like to use the faster PC for doing make buildworld and make buildkernel KERNCONF=XYZ. Then somehow do the install onto the slower PC. The slower PC is running as a router and httpd server. The faster PC is running very a different set-up however they are both running 5.1-RELEASE. Is this possible? _ Hotmail is now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/signup.asp ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
File system limits
I'm working on a little experimental script and I'm wondering if there is any kind of limit as to how many files or subdirectories a directory can have. I'm in the planing stages at the moment and I'm think that I may have upto 4096 directories in a single directory, each of these 4096 directories could have upto 4096 sub directories... The other option I have (if this is too many) is to have 256 subdirectories (I'm guessing this on will not be a problem) _ MSN Instant Messenger now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/hotmail_messenger.asp To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
sed question
Not directly FreeBSD question, however. Is it possible with sed (or awk) to turn this: i/in/1 2/3 4 5 6 into i/in/1 2/3456 The same syntax would also need to work on: i/in/1 2/x y z (result would be i/in/1 2/xyz) i/in/1 2 (result would be i/in/12) The closest I have gotten it to is: i/in/1 2/3 4 56 with sed s/\(.*\) /\1/g (which will work, just needs to be repeated. I do not know awk at all btw) _ Hotmail now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
when did bzip2 become part of the base?
Hi, I'm working on a little script and I was just wondering when bzip2 became part of the FreeBSD base (which version of FreeBSD, not a date)? The bzip2 man page does not state this information (nor does man gzip for gzip) but tar has the -j (or -y) option which includes bzip2 support. I guess I'm asking if it is a safe bet to state that bzip2 is installed (by default) on any FreeBSD 4.X release or newer? _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
permissions for /tmp?
In of those very special moments I did rm -rfv /tmp/ (thinking it would delete the contents of /tmp not /tmp as well) Anyway, I've re-created /tmp but I have forgoten what the default owner:group and permission are. Could someone enlighten me? (laugh as well, I did :]) _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
How to return file date only?
I am trying to return the creation date of a file in MMDDhhmmYY format. I'm sure there is a command, I just can not find it. Under cygwin the command is `date +%m%d%H%M%y -r $FILE`, however FreeBSD does not have this function with 'date' Thanks for any help! _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: How to return file date only?
'stat' does not seem to be installed (at least by default) on a FreeBSD 4.7-STABLE system $ stat -f '%c' . stat: not found Any other ideas? From: Giorgos Keramidas [EMAIL PROTECTED] Subject: Re: How to return file date only? On 2002-11-20 23:22, How Can ThisBe [EMAIL PROTECTED] wrote: I am trying to return the creation date of a file in MMDDhhmmYY format. I'm sure there is a command, I just can not find it. Under cygwin the command is `date +%m%d%H%M%y -r $FILE`, however FreeBSD does not have this function with 'date' FreeBSD has stat(1). keramida@gothmog[01:50]/home/keramida stat -f '%c' . 1037835701 _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
'who' in single user mode, feature or bug?
I've noticed something that I'm not sure is a bug or a feature, so I'm posting to 'questions' first :] If a system is placed into single user mode over a remote terminal (I'm using ssh in case that matters) using 'shutdown now', then a 'who' is called (in single user mode) at the system console it will display a list of user who where connected at the time of the shutdown. My understanding of 'who' was that it showed connected users, not ghost. (from 'man who') The who utility displays information about currently logged in users. Its kind of a cool feature/bug but is it correct? (this is on a FreeBSD 4.7-RC system) _ Send and receive Hotmail on your mobile device: http://mobile.msn.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message