Re: Strange Files/Directories

2005-05-26 Thread James Alexander Cook
On Thu, May 26, 2005 at 08:09:12PM -0400, jbw wrote:
> I backed up a few DVDs to my harddrive using dvdbackup. However I cannot 
> However I cannot cd into the directories that were created to view the
> files as a normal user or as root.  I can do an ls -lR and it will
> show me all of the files in the directories. I can change the
> permissions on the directories using chmod. I am the owner of the
> files. du -h shows the amount of space the files are taking up. But I
> cannot cd, mv, cp or do anything else to the directories even as root.
> 
> Anyone have any ideas on what the problem is?
> 
> thanks
> 
> -jbw

Do you have execute permission on the directories?  Try "chmod 700 dir" where
dir is the directory you want to enter.

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


Re: Clock running fast

2005-05-04 Thread James Alexander Cook
On Wed, May 04, 2005 at 03:51:05PM -0500, W. D. wrote:
> At 14:49 5/4/2005, Ryan Winograd, wrote:
> >Hi all,
> >I recently noticed that the system clock on a machine i recently set up 
> >is running very quickly, about 2x realtime by my measuring. What can i 
> >do to solve/investigate this problem? What information would be helpful?
> 
> http://www.Google.com/search?q=install+ntp+on+FreeBSD

I might be wrong here, but doesn't NTP only make occasional adjustments to the
system clock?

If your clock runs twice as fast as normal, it would jump to the correct time
every time ntpd corrected it, but in between automatic adjustments, the time
would become wildly innacurate.

Also, wouldn't a problem like this make your system try to play movies at
twice the frame rate, and things like that?  NTP is worth a try, but I doubt
if it will fix things like that.

A google search for "fast clock" seemed to turn up a few results about this
problem on mailing lists; I haven't looked into them further.

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


Re: test

2005-04-27 Thread James Alexander Cook
Copy.

Tests should go to [EMAIL PROTECTED]

See http://lists.freebsd.org/mailman/listinfo/freebsd-test.

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


Re: Would like to get back my command prompt!

2005-04-24 Thread James Alexander Cook
On Sun, Apr 24, 2005 at 02:37:23PM +, Michael Neeff wrote:
> A newbie with installing FreeBSD 5.3...I installed X and got excited to 
> direcly log on to X (xdm) with the dialog box. I modified the lineto turn 
> xterm on:
> ttyv8 "/usr/X11R6/bin/xdm - nodaemon" xterm ON secure.
> Now I am stuck in a login loop... I would like to configure X and install 
> KDE, but it is stuck on the ChooseSessionListWidet I can only choose 2 
> options DEFAULT/FAIL SAFE and CANCEL and nothing happens in either case... 
> hitting CTRL+ALT_+BKSPACE does nothing
> 
> How do I just login to the command prompt without X opening directly?? I 
> think I tried option 6 and it gives me a command prompt but I cannot edit 
> any file.

I have two ideas.

1. After X has opened, press CTRL-ALT-FN where N is a number from 1-8.  That
   should bring you to a text-based virtual terminal.  To go back to X, type
   CTRL-ALT-F9.

2. If 1 doesn't work, try booting in single-user mode.  From there, you can
   remount / read-write, mount /usr (to get access to an editor like vi),
   then "vi /etc/ttys" and turn off X11.

   # mount -u -o rw /
   # mount /usr
   # vi /etc/ttys

   I don't remember for sure, but I think you'll want to type

   # mount -a

   before exiting the single-user session to boot the system; I don't think
   your filesystems are mounted automatically otherwise.

> 
> Thanks in advance.
> Mike

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


Re: fsck in securelevel 2?

2005-04-24 Thread James Alexander Cook
On Sun, Apr 24, 2005 at 03:49:27PM +0200, K?vesd?n G?bor wrote:
> Hi,
> 
> I tried to check the root partition with fsck and it found errors and 
> for my greatest surprise, it answered its questions automatically with 
> no. It is due to the securelevel 2? I've been thinking whether fsck uses 
> direct access (which is denied by the securelevel) or not?

If by "direct access" you mean opening the disk for writing, I'm pretty sure
the answer is yes, fsck does use direct access.  Correct me if I'm wrong, but
the only possible way to write to a disk in securelevel 2 is by mounting it and
modifying the filesystem on it.  And you can't fix a filesystem without a more
direct way of accessing it.

> 
> Cheers,
> 
> Gábor Kövesdán

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


Re: no freebsd-beginners list?

2005-04-16 Thread James Alexander Cook
On Sat, Apr 16, 2005 at 07:30:17PM -0400, Brian Kinsey wrote:
> I went to sign up for the freebsd beginners list and got a response that the
> list was closed and I should use freebsd-questions instead. It seems to me
> that a newbie list would be beneficial to many of us. I see a lot of very
> technical questions here and feel that my newbie questions would not be
> appreciated, especially since I have not read through the entire handbook
> yet (yes, I'm working on it and I do try to use it to answer my own
> questions before I post). There is already enough traffic here (I know, my
> little rant here doesn't help with that) and I personally think that a list
> with newbs helping other newbs and maybe a few of you more advanced people
> popping in from time to time to share some tips would make things a bit
> easier for some of us to learn. At least then I would be apt to ask more
> questions and not be afraid to get a RTFM from the more advanced users. Then
> I could also feel that I've made some accomplishment when the newbie list no
> longer meets my needs and I can move up to freebsd-questions. Is there
> somewhere else I should go, or is this the appropriate place for me? Does it
> annoy you guys that have been using FreeBSD for a while to get my newbie
> questions taking up room in your mailboxes?
> 
>  
> 
> On a side note, I do appreciate that I have not seen as many RTFM replies
> here as I saw on the Linux boards when I was trying to learn Linux :-)

How about freebsd-newbies?

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


Re: No ports without ftp ?

2005-02-27 Thread James Alexander Cook
On Sun, Feb 27, 2005 at 09:41:42AM -0800, Claudiu Bichir wrote:
> Hello guys ! I'm on a LAN which has the ftp port blocked. Is there any chance 
> for me to install aplications from ports ?
> Thank you !
> 
>   
> -
> Do you Yahoo!?
>  Read only the mail you want - Yahoo! Mail SpamGuard.

$ cd /usr/ports/www/zope
$ make
=> Zope-2.7.4-0.tgz doesn't seem to exist in /usr/ports/distfiles/zope.
=> Attempting to fetch from http://www.zope.org/Products/Zope/2.7.4/.
^C
$ 

Generally, when make tries to fetch a file, it will tell you where that file
should end up, and where it's getting it from.

If you manually download
http://www.zope.org/Products/Zope/2.7.4/Zope-2.7.4-0.tgz to
/usr/ports/distfiles/zope from somewhere with an unblocked connection, then
make will verify that the file has the correct checksum, and if so, won't try
to fetch it since it's already there.

(This is a bad example, since this port uses http anyway... but you get the
idea.)

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


Re: logging proftpd question

2005-02-23 Thread James Alexander Cook
On Tue, Feb 22, 2005 at 02:31:03PM -0500, David Banning wrote:
> > I believe the syntax you want is
> > 
> > ftp.*   /var/log/proftpd.log
> > 
> > Make sure the logfile exists (and is writable),
> > otherwise I think syslog will complain.
> 
> Thanks, fellow Torontonian, for your reply. 
> 
> I tried your suggestion previous to my posting, with no result.
> 
> Now, could something in the;
> 
> 
> I tried your suggestion previous to my posting, with no result.  I
> also did a "touch /var/log/proftpd.log" and "chmod 600
> /var/log/proftpd.log"
> 
> The line;
> 
> *.notice;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
> 
> is what is grabbing the messages I want to redirect. (I beleive *.notice)
> 
> I just wonder if the line I just mention takes the log entry, if another
> can still take it. Can a log entry only be logged once? Or can you have
> it go to multiply files? (via multiple syslog.conf entries)

I'm pretty sure a log entry can go to as many files as you want.  For example,
my syslog.conf file currently has

*.err;kern.debug;auth.notice;mail.crit  /dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   
/var/log/messages
security.*  /var/log/security
auth.info;authpriv.info /var/log/auth.log
mail.info   /var/log/maillog
lpr.info/var/log/lpd-errs
ftp.info/var/log/xferlog
cron.*  /var/log/cron
*.=debug/var/log/debug.log
*.emerg *
*.* /var/log/all.log
!startslip
*.* /var/log/slip.log
!ppp
*.* /var/log/ppp.log

All of my log messages end up in /var/log/all.log, even though they're also put 
in /var/log/messages.

The only thing I can think of is that you might have a program or hostname
specification that's messing things up (any line starting with !, #!, + or +!).
Anything following such a line will only apply to certain things; for example,
the only things that end up in /var/log/ppp.log in my configuration are
ppp-related messages (even though the ppp.log line starts with *.*).

That's all I can think of, anyway.  I never touched my syslog.conf file before
a few days ago, so I'm hardly an authority.

> 
> It sure would be easier if in the log entry it said "ftp.notice" or
> some such thing so you -know- how it is being directed.
> 
> I have tried running syslog with -d and -vv and there seems to be no
> indication what the facility name that is used.
> 

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


Re: logging proftpd question

2005-02-22 Thread James Alexander Cook
On Tue, Feb 22, 2005 at 01:35:25AM -0500, David Banning wrote:
> Presently all my proftpd logging goes to /var/log/messages but
> it is clogging that file because I have an ftp login every couple of
> minutes. I want to redirect proftpd logging. I tried putting 
> 
> proftpd:* /var/log/proftpd.log
> 
> in my /etc/syslog.conf
> 
> but syslogd complains;
> syslogd: unknown facility name "proftpd"
> 
> looking at the man page for proftpd is says;
> 
> Each successful and failed ftp(1) session is logged using syslog with a
> facility of LOG_FTP.  Note: LOG_FTP messages are not displayed by  sys-
> logd(8) by default, and may have to be enabled in syslogd(8)'s configu-
> ration file.
> 
> 
> So I tried;
> 
> LOG_FTP:* /var/log/proftpd.log
> 
> still no go.
> 
> I am unfamiliar with logging. Can someone help me along here?
> 
> -- 

$ man syslog.conf

 The facility describes the part of the system generating the message, and
 is one of the following keywords: auth, authpriv, console, cron, daemon,
 ftp, kern, lpr, mail, mark, news, ntp, security, syslog, user, uucp and
 local0 through local7.  These keywords (with the exception of mark) cor-
 respond to similar ``LOG_'' values specified to the openlog(3) and
 syslog(3) library routines.


I believe the syntax you want is

ftp.*   /var/log/proftpd.log

Make sure the logfile exists (and is writable),
otherwise I think syslog will complain.

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


Re: Very general shutdown question

2005-02-07 Thread James Alexander Cook
On Mon, Feb 07, 2005 at 11:49:22AM +, Dick Davies wrote:
> * Steven <[EMAIL PROTECTED]> [0203 23:03]:
> > Hello Ned,
> > 
> > you can add the user to the operator group. it is possible to run 
> > shutdown then (but not halt etc).
> 
> Be caneful of that, I think operator  has other privileges too
> (can read from any disk for starters).
> 
>  
> > You could also create a shutdown user with a login shell pointing to a 
> > shutdown script.
> 
> But that won't work if they still don't have permission to run it...
> 

What if you put the shutdown user in the operator group?

I don't plan to use this solution, but out of curiousity, are there any
security problems with creating a privileged user with a widely known password
but a login shell that does something specific, like shutting down the system?

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


Re: Memory and Battery applets

2005-02-06 Thread James Alexander Cook
On Sun, Feb 06, 2005 at 02:11:45AM -0500, Matt Aasted wrote:
> I'm running Gnome 2.8 on a recent version of FreeBSD Stable 5.3 on an
> x86 (dell latitude d600) processor, and whenever my system is on the
> memory usage shown in the gnome memory monitor slowly climbs to 100%
> over the course of about an hour. Gkrellm confirms that it the memory
> is slowly going away, even when I'm not interacting with the system.
> Should I be concerned about this (is there a memory leak or something
> or is the applet just buggy?)

Are you sure it isn't just disk cache?  As I understand it, FreeBSD keeps
things it reads from disk in memory until that memory is needed by something
else, the effect being that very little of physical memory is ever completely
unused.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: trouble mounting partition on hard drive

2005-02-05 Thread James Alexander Cook
On Sat, Feb 05, 2005 at 02:39:44PM -0600, Brian John wrote:
> Hello, I am unable to mount one of my ntfs partitions.  When I try to 
> mount it I get this:
> 
> # mount /hd2_4
> fstab: /etc/fstab:12: Inappropriate file type or format
> fstab: /etc/fstab:12: Inappropriate file type or format
> mount: /hd2_4: unknown special file or file system
> 
> Here is my fstab file:
...
> /dev/ad1s7  /hd2_4  ntfsro.noauto   0   0
^

There's the culprit (just a guess).

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