add/remove disks in gmirror

2007-12-04 Thread Eugene M. Minkovskii
Hi all!

I use FreeBSD 6.2

I want to try use gmirror to constract raid5, so I do following:

# dd if=/dev/zero of=zero0 bs=1024 count=102400
# dd if=/dev/zero of=zero1 bs=1024 count=102400
# dd if=/dev/zero of=zero2 bs=1024 count=102400
# mdcontrol -a -t vnode zero0
# mdcontrol -a -t vnode zero1
# mdcontrol -a -t vnode zero2

# cat /boot/propeller
drive b0 device /dev/md0
drive b1 device /dev/md1
drive b2 device /dev/md2
volume propeller
plex org raid5 512k
sd drive b0
sd drive b1
sd drive b2

# gvinum create /boot/propeller
# newfs /dev/gvinum/propeller
# mount /dev/gvinum/propeller mountpoint/

This working excellent, but I want to try what can I do if some
of the disk crashed? So, I do following:

# gvinum rm b2
# mdcontrol -d -u md2
# dd if=/dev/zero of=zero2 bs=1024 count=102400
# mdcontrol -a -t vnode zero2

So, I see files in mountpoint, but what should I do to attach new
disk /dev/md2 into raid5? Perhaps I need to use rebuildparity,
but I see following line in man gvinum:

All subdisks in the plex must be up for a parity check

So, how can I up subdisk?

# gvinum l
3 drives:
D b2State: down /dev/md2A: 99/99 MB (100%)
D b0State: up   /dev/md0A: 0/99 MB (0%)
D b1State: up   /dev/md1A: 0/99 MB (0%)

1 volume:
V propeller State: up   Plexes:   1 Size: 99 MB

1 plex:
P propeller.p0   R5 State: up   Subdisks: 2 Size: 99 MB

2 subdisks:
S propeller.p0.s0   State: up   D: b0   Size: 99 MB
S propeller.p0.s1   State: up   D: b1   Size: 99 MB




-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: WiFi ipw howto?

2006-11-05 Thread Eugene M. Minkovskii
On Sun, Nov 05, 2006 at 07:03:49PM +, Marwan Sultan wrote:
 
 Hi,
 
   3945ABG is not supported yet, by any method.
   not NDIS not any option yet.
 
  Also donot try any of the options or drivers in
  http://damien.bergamini.free.fr/ipw/
  it doesnot support 3945ABG even if it says (almost) it supported.
 
  Hope someone will showup some day very soon with this driver,
  as many new laptops specially HP are using it.
 
  By the way, is your soundcard driver working?
 

Yes. It's working good with module snd_hda.ko (HP Compaq
nc6320 ES479EA has sound card AC97 2.0 compatible)

-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


WiFi ipw howto?

2006-11-04 Thread Eugene M. Minkovskii
Hello!

I'm use FreeBSD CURRENT, ${OSVERSION} is 700024

So, I have laptop HP Compaq nc6320 whith WiFi adapter Intel 3945ABG.
When I turning on my WiFi using button on the laptop, I see in
dmesg following:

| # dmesg tail:
| ugen0: Broadcom Corp HP Integrated Module, class 224/1, rev 2.00/1.00, addr 
3 on uhub5

Now, I find following site for configure my FreeBSD:
http://damien.bergamini.free.fr/ipw/ipw-freebsd.html

In this site I see that I should build the port net/ipw-firmware.
But I read in /usr/ports/UPDATING:

| 20060418:
|   AFFECTS: users of net/{ipw,iwi}-firmware
|   AUTHOR: [EMAIL PROTECTED]
| 
|   Some changes in the way ipw(4) and iwi(4) work lead to fundamental
|   changes in ipw-firmware and iwi-firmware ports. Since these drivers
|   are now using loadable kernel modules as firmware, two new ports have
|   been created: net/ipw-firmware-kmod and net/iwi-firmware-kmod.  
| 
|   You should not be able to install the wrong one since detection is
|   based on your FreeBSD version. Trying to install the wrong port will
|   result in an error message (port marked as IGNORE).

And when I trying to run make in this port, I get following
error:

| # cd /usr/ports/net/ipw-firmware/
| # make
| 
| ===  ipw-firmware-1.3_8 is now obsolete,
| install net/ipw-firmware-kmod instead.
| 
| *** Error code 1
| 
| Stop in /usr/ports/net/ipw-firmware.


Ok, now I trying to build ipw-firmware-kmod:

| # cd /usr/ports/net/ipw-firmware-kmod/
| # make
| ===  ipw-firmware-kmod-1.3_1 needs fresh ipw(4),
| install net/ipw-firmware instead.
| *** Error code 1
| 
| Stop in /usr/ports/net/ipw-firmware-kmod.


This looks like a joke... So in the
/usr/ports/net/ipw-firmware-kmod/Makefile I find folliwing lines:

| .if !( ${OSVERSION}  ${MIN7OSVERSION} || \
| ( ${OSVERSION}  70  ${OSVERSION} = ${MIN6OSVERSION} ) )
| IGNORE= needs fresh ${DRIVERNAME}(4), install 
net/${DRIVERNAME}-firmware instead
| .endif

My ${OSVERSION} is 700024, ${MIN6OSVERSION} and ${MIN7OSVERSION}
are 99. It's seems to me this is a bug, and exclamation
should be removed...




Does anybody know whete I can find FRESH howto about installation
of this drivers? Why I see USB messages about ugen, when I
turning on WiFi adapter? What should I do to configure WiFi?





-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bug in tcpdump?

2006-06-02 Thread Eugene M. Minkovskii
On Thu, Jun 01, 2006 at 09:15:52PM +0400, Andrew Pantyukhin wrote:
 On 6/1/06, Eugene M. Minkovskii [EMAIL PROTECTED] wrote:
 It seems to me that I see a bug in tcpdump(1): option -A working
 same as -x and don't produce ASCII output.
 
 Попробуй так: tcpdump -npx -i iface
 

Thank you, but I don't need a solution. If this is a bug, I'll
wrote a pr, If I mistaken, I don't wrote pr.

-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


bug in tcpdump?

2006-06-01 Thread Eugene M. Minkovskii
It seems to me that I see a bug in tcpdump(1): option -A working
same as -x and don't produce ASCII output.

(I use FreeBSD 6.1)

-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: loose locale after upgrade from 5.4 to 6.1RC2

2006-05-03 Thread Eugene M. Minkovskii
On Tue, May 02, 2006 at 08:15:06AM +0400, Eugene M. Minkovskii wrote:
 Hello.
 
 I'm cvsuped from FreeBSD 5.4 to 6.1 RC2 and loose my russian
 locale:( I can't type russian letters and many programs print
 some warnings about locale. But russian fonts are worked: When I
 go to other mashine through ssh, I see it.
 
 For example:
 svn report:
 svn: error: cannot set LC_ALL locale
 svn: error: environment variable LANG is ru_RU.KOI8-R
 svn: error: please check that your locale name is correct
 
 So, this is my locale:
 $ locale
 LANG=ru_RU.KOI8-R
 LC_CTYPE=ru_RU.KOI8-R
 LC_COLLATE=ru_RU.KOI8-R
 LC_TIME=ru_RU.KOI8-R
 LC_NUMERIC=ru_RU.KOI8-R
 LC_MONETARY=ru_RU.KOI8-R
 LC_MESSAGES=ru_RU.KOI8-R
 LC_ALL=
 
 (Same I see on old worked mashine). This is fragment of my rc.conf:
 font8x14=cp866-8x14
 font8x16=cp866b-8x16
 font8x8=cp866-8x8
 scrnmap=koi8-r2cp866
 keymap=ru.koi8-r.win.winkey.kbd
 
 (Last line is my own keymap, when I set system keymap through
 sysinstall, I can't type in russian too --- same effect)
 
 environment I set by user class and /etc/login.conf. User has
 russian class, and in login conf we see:
 
 #
 # Russian Users Accounts. Setup proper environment variables.
 #
 russian|Russian Users Accounts:\
 :charset=KOI8-R:\
 :lang=ru_RU.KOI8-R:\
 :tc=default:
 
 
 -- 
 Sensory  yours, Eugene  Minkovskii
 Сенсорно ваш,   Евгений Миньковский
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

I solve the problem:
after cvsup from 5.4 to 6.x and rebuild the world, we MUST
recompile many ports including bash.

-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


loose locale after upgrade from 5.4 to 6.1RC2

2006-05-01 Thread Eugene M. Minkovskii
Hello.

I'm cvsuped from FreeBSD 5.4 to 6.1 RC2 and loose my russian
locale :( I can't type russian letters and many programs print
some warnings about locale. But russian fonts are worked: When I
go to other mashine through ssh, I see it.

For example:
svn report:
svn: error: cannot set LC_ALL locale
svn: error: environment variable LANG is ru_RU.KOI8-R
svn: error: please check that your locale name is correct

So, this is my locale:
$ locale
LANG=ru_RU.KOI8-R
LC_CTYPE=ru_RU.KOI8-R
LC_COLLATE=ru_RU.KOI8-R
LC_TIME=ru_RU.KOI8-R
LC_NUMERIC=ru_RU.KOI8-R
LC_MONETARY=ru_RU.KOI8-R
LC_MESSAGES=ru_RU.KOI8-R
LC_ALL=

(Same I see on old worked mashine). This is fragment of my rc.conf:
font8x14=cp866-8x14
font8x16=cp866b-8x16
font8x8=cp866-8x8
scrnmap=koi8-r2cp866
keymap=ru.koi8-r.win.winkey.kbd

(Last line is my own keymap, when I set system keymap through
sysinstall, I can't type in russian too --- same effect)

environment I set by user class and /etc/login.conf. User has
russian class, and in login conf we see:

#
# Russian Users Accounts. Setup proper environment variables.
#
russian|Russian Users Accounts:\
:charset=KOI8-R:\
:lang=ru_RU.KOI8-R:\
:tc=default:


-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


how to locate file by inode?

2006-03-22 Thread Eugene M. Minkovskii
Hello!

Does anybody know how to locate file by inode? For example, using
fstat(1) I see:

USER CMD  PID   FD MOUNT   INUM MODE SZ|DV R/W
...
user some_program 84130 0  /dev  68 crw--w   ttyp0 rw
user some_program 84130 1  /usr  595890 -rw-r--r--   0 w
user some_program 84130 2  /dev  68 crw--w   ttyp0 rw
...

I see that some_program using file whith inode 595890 on mount
point /usr like STDOUT. To find it I do following:

$ find -x /usr -inum 595890

to find two files:

$ find -x /usr \( -inum 595890 -o -inum $other_inum \) -ls

but this is too slow. Does any body know other, more directly
method?

-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mounting UFS under Linux

2005-09-18 Thread Eugene M. Minkovskii
Hello, please tell me, how can I (if I can) mount UFS2 partition
under Linux (I install gentoo Linux 2005.1).

-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mplayer broke FreeBSD console

2005-07-26 Thread Eugene M. Minkovskii
Hello.

I'm using mplayer to play audio mp3 files in console WITHOUT X.
Console is in VESA_132x50 mode.

My mplayer broke console. It seems like symbol \r does not catch
properly. But in Rxvt or Xterm all correct. So, I forced to use
-quiet option when I use mplayer in console.

Versions:
MPlayer 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0 
complied for i386 CPU with extensions MMX MMX2 SSE

FreeBSD 5.4-RELEASE-p1

FreeBSD kernel:
device sc
options SC_HISTORY_SIZE=1000
options SC_PIXEL_MODE


-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD-newbie!

2005-07-26 Thread Eugene M. Minkovskii
On Tue, Jul 26, 2005 at 04:38:01PM +0100, lars.lindblad wrote:
 
 Hi.
 
 My name is Lars and lives in Sweden. I have finally bought
 FreeBSD 5.2 and the handbook from the FreeBSD-mall. That's
 great! I've wanted to leave the Windows-world and I have
 been testing Linux for a few years.
 
 But I have some problems with my FreeBSD-installation, and I
 hope someone here can help me!
 
 Facts: FreeBSD5.2 (feb 2004 version), IBM Thinkpad (laptop
 with 300Mhz Intel II, 96Mb RAM and 20Gb HDD.

It seems to me, more wise is to use FreeBSD 5.4 in laptop,
because FreeBSD 5.2 was some problems in ACPI. thats problems was
fixed in latest releases.


 1. Since I have been used to KDE over the years, I have
 decided to continue with that, but it locks up the entire
 computer - sometimes when I start KDE, and mostly when I
 shut it down.

Perhaps you should turn off ACPI. First of all try to boot witout
ACPI (I don't remember, but it seems to me this is a second item
in boot menu), if this bring good resalt to you, go to the
/boot/device.hints and add to this file following line:

hint.acpi.0.disable=1


 2. In frustration over KDE-issues I tested Gnome. Quite
 pretty Window Manager, but I never got any working keyboard
 there. Ideas? And can I run KDE-applications in Gnome? I use
 Kstars a lot.
 
 3. In Sweden we have some exciting extra wovels... but the
 keymaps never seem to find them. What do I do wrong? What
 kind of a keyboard do I have on a Thinkpad anyway?! At some
 configurations I've got the  and , but no ~, and of course
 the opposite has also happened.

I think you don't configure your X properly. Perhaps you may copy
paste your language settings from Linux, which you tested for a
few years. I use WindowMaker and run many KDE and GNOMEs
progrums under it. Moreover, I'm a russian user. This is much
more hard language for localization, then sweden. We have more
then 3 different encodings, more then 2 different input-maps.


 Um... I think that's all for now. Hope someone can help!
 Thanks in advance!
 
 / Lars
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


(fwd) sshd events

2005-06-09 Thread Eugene M. Minkovskii
Hello.

I need fixing in mysql database sshd events: some user try to
loggin in from ip xxx.xxx.xxx.xxx and use account xxx. But my
/var/log/auth.log has not nessesary information (for example: if
I put some users into AllowGroups, in logs I can read something
like this: User xxx not allowed because none of user's groups
are listed in AllowGroups, and I can't see from what IP I got
this request.)

Moreover, I think parsing auth.log is not beautelul idea. Can
sshd do some actions after he allow or deny connection? Can he
run some script with some arguments?

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


Re: FreeBSD 5.x forgetting passwords.

2005-05-31 Thread Eugene M. Minkovskii
On Mon, May 30, 2005 at 03:53:29PM +0200, Christian Tischler wrote:
 Eugene M. Minkovskii wrote:
 
 On Sun, May 29, 2005 at 10:55:41PM +0200, Christian Tischler wrote:
  Hi,
  I am running a FreeBSD 5.1 system and some time ago it startet to 
  forget some user passwords.
  As the system is now running for over 2 years I cannot imagine any 
  reason why this shound be.
  Any ideas.
 
 root# su user
 user$ passwd
 newpasswd
 newpasswd
 user$ exit
 
 
 
  Thanks in advance
  
  Christian
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
  
 
 And how do I do it from remote via ssh?
 

you$ sudo su user

or, if you in group wheel, perhaps possible following

you$ su user

if you are not sudoer and you have not other way to take a root
privilegies, you can't be other user. And this is right. In other
case anybody can be anybody.

 thx
 
 Christian
 
 PS: that was not quite an answer to my question I think, was it?

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


Re: FreeBSD 5.x forgetting passwords.

2005-05-30 Thread Eugene M. Minkovskii
On Sun, May 29, 2005 at 10:55:41PM +0200, Christian Tischler wrote:
 Hi,
 I am running a FreeBSD 5.1 system and some time ago it startet to 
 forget some user passwords.
 As the system is now running for over 2 years I cannot imagine any 
 reason why this shound be.
 Any ideas.

root# su user
user$ passwd
newpasswd
newpasswd
user$ exit



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

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


sound absent

2005-05-03 Thread Eugene M. Minkovskii
Hello people!

I'm using HP motherboard with integrated audio chipset, and I
made statically kernel.

So, I wrote in my kernel configuration:

device  sound
device  snd_ich

and

NO_MODULES=yes

in /etc/make.conf.  Then I make kernel and reboot.

Now I see following:

$ dmesg | grep pcm0
pcm0: Intel ICH5 (82801EB) port 0xd400-0xd43f,0xd800-0xd8ff mem 
0xfe77b400-0xfe77b4ff,0xfe77b800-0xfe77b9ff irq 17 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
pcm0: Unknown AC97 Codec (id = 0x41445368)
pcm0: Intel ICH5 (82801EB) port 0xd400-0xd43f,0xd800-0xd8ff mem 
0xfe77b400-0xfe77b4ff,0xfe77b800-0xfe77b9ff irq 17 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
pcm0: Unknown AC97 Codec (id = 0x41445368)

I have not idea about why this information present in dmesg two
times... But it's not important, perhaps.

$ pciconf -lv
...
[EMAIL PROTECTED]:31:5: class=0x040100 card=0x218114a4 chip=0x24d58086 rev=0x02 
hdr=0x00
vendor   = 'Intel Corporation'
device   = '82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller'
class= multimedia
subclass = audio
...

and finally:

$ cat /dev/sndstat 
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: Intel ICH5 (82801EB) at io 0xfe77b800, 0xfe77b400 irq 17 bufsz 16384  
(1p/1r/0v channels duplex default)

Great! It seemes to all be okay!

But there are silenice in my headphones :( Have you any idea?


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


Re: OpenBSD's pf and traffic

2005-03-22 Thread Eugene M. Minkovskii
Sorry, it's again I.

So, I was trying to modify my OpenBSD pf brandmauer to collect me
information about traffic. Now I has following rules:

pass out on $ext_if proto tcp all modulate state flags S/SA
pass out on $ext_if proto { udp, icmp } all keep state

So, where could I put label to mark inbound traffic? This traffic
goes into my machine because I use state table.

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


Re: OpenBSD's pf and traffic

2005-03-22 Thread Eugene M. Minkovskii
On Tue, Mar 22, 2005 at 01:18:27PM +0100, Peter N. M. Hansteen wrote:
 Eugene M. Minkovskii [EMAIL PROTECTED] writes:
 
 
 I'd say something along the lines of 
 
 allowed_out = { ssh, domain, http, https, etc... }
 
 pass out on $ext_if proto tcp $allowed_out label allowed-out keep state
 
 you could differentiate among source addresses, for example by
 specifying
 
 client1 = { 192.68.n.1, 192.168.n.2 }
 client1 = { 192.68.n.3, 192.168.n.4 }
 
 client2_inports = { whatever they need }
 
 pass out on $ext_if from $client1 to any proto tcp $allowed_out \
  label client1 keep state
 
 pass out on $ext_if from $client2 to any proto tcp $allowed_out \
  label client2-out keep state
 
 pass from any to $client2 $client2_inports label client2-in keep state
 
 and so on. Hope this helps.

Just a moment, does it mean that your last rule allow any
incoming connections from world to clients if thay matched by
client2_inports, ANY, not only connections opened by clients?

Moreover, I read in documentation, that state table reads BEFORE
rules, and connections that opened by clients in first rule:

pass out on $ext_if from $client1 to any proto tcp $allowed_out \
 label client2 keep state

whill not marked by label client2-in because thay don't pass to
this rule. Am I right?

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


Re: OpenBSD's pf and traffic

2005-03-22 Thread Eugene M. Minkovskii
 
 In a word, yes. The 'keep state' in these examples, would AFAIK mean
 that the counters would keep track of all traffic for a connection, so
 traffic initiated from the inside would match the pass out rule's
 counters, while connections opened from the outside would count on the
 pass in rules.
 

Unfortunely, this mean, that OpenBSD's pf can not measure
traffic, because we can not separate incoming and outgoing
traffic in bidirectional rule. Or we must not use keep state
feature.

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


Re: OpenBSD's pf and traffic

2005-03-22 Thread Eugene M. Minkovskii
On Tue, Mar 22, 2005 at 02:28:09PM +0100, Peter N. M. Hansteen wrote:
 Eugene M. Minkovskii [EMAIL PROTECTED] writes:
 
  Unfortunely, this mean, that OpenBSD's pf can not measure
  traffic, because we can not separate incoming and outgoing
  traffic in bidirectional rule. Or we must not use keep state
  feature.
 
 I think I understand what you mean - you do not want per connection
 statistics, you want packets passed by direction, regardless of which
 side initiated the traffic, subdivided by pass rule. At the moment I'm
 not sure how to put that into pf.conf rules, but you may want to go
 where the real pf experts hang out - pf@benzedrine.cx - and see if
 there's an angle we haven't thought of.
 

Yes, now you understand me right. Sorry my bad english :).

pf@benzedrine.cx is it mail-list or private e-mail. Does I need
to register anywhere before mail to it?

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


Re: OpenBSD's pf and traffic

2005-03-21 Thread Eugene M. Minkovskii
On Mon, Mar 21, 2005 at 08:54:35AM +0100, Peter N. M. Hansteen wrote:
 Eugene M. Minkovskii [EMAIL PROTECTED] writes:
 
  block in log on $ext_ip inet from any to $ext_ip label $ext_ip
  pass  in on $ext_ip inet from any to $ext_ip port 22 keep sate
 
  As you can see, ssh packets match to all rule and pass in because
  last rule win. Does it mean, that I can't see ssh's packet using
  command
  # pfctl -sl
 
 here you label the blocked packets but not the ones you pass, which
 means your ssh packets would count toward the packets passed counter only.
 
  And if I use
 
  block in log on $ext_ip inet from any to $ext_ip label $ext_ip
  pass  in on $ext_ip inet from any to $ext_ip port 22 keep sate label 
$ext_ip
 
  ... I see label twice ?
 
 No. But both rules would increment the $ext_ip counter, which means that
 your $ext_ip counter would be essentially packet totals. Last matching
 rule wins (with state instead of sate it would work), so each packet
 increments the relevant counters only once.

I was trying some experiments... It seems to me you are right in
all except one: second line don't increase $ext_ip counter,
but...  add other counter with same name:

# pfctl -sr | grep label
block in log on $ext_if inet from any to $ext_if label $ext_if
block in log quick on $ext_if inet from crackers to $ext_if label $ext_if
pass in on $ext_if inet proto tcp from any to $ext_if port = ssh flags S/SA 
keep state label $ext_if
pass in on $ext_if inet proto tcp from any to $ext_if port = smtp flags S/SA 
keep state label $ext_if
pass in on $ext_if inet proto tcp from any to $ext_if port = auth flags S/SA 
keep state label $ext_if
pass in on $ext_if inet proto tcp from any port = ftp-data to $ext_if user = 62 
flags S/SA keep state label $ext_if


# pfctl -vsl
rl0 48703 10 936
rl0 26095 0 0
rl0 25845 776 81479
rl0 29 25 2952
rl0 29 0 0
rl0 29 0 0


But, of course, this output is scriptable. (I can sum this
numbers in pyhon or bc)


  Perhaps you know where I can find workable example of this?
 
 Randal Schwartz has a nice article called Monitoring Net Traffic with
 OpenBSD's Packet Filter at 
http://www.samag.com/documents/s=9053/sam0403j/0403j.htm
 

Thanks


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


OpenBSD's pf and traffic

2005-03-20 Thread Eugene M. Minkovskii
Hello!

Does any body know, how can I use OpenBSD's pf (packet filter) for
determine total traffic volume on network interface? If it's
impossible, what facility you recommend me to do this?

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


Re: OpenBSD's pf and traffic

2005-03-20 Thread Eugene M. Minkovskii
On Sun, Mar 20, 2005 at 05:51:58PM +0100, Peter N. M. Hansteen wrote:
 Eugene M. Minkovskii [EMAIL PROTECTED] writes:
 
  Does any body know, how can I use OpenBSD's pf (packet filter) for
  determine total traffic volume on network interface? If it's
  impossible, what facility you recommend me to do this?
 
 Various pfctl -s options (eg pfctl -s info) give you counters of bytes
 and packets passed or blocked. If you use labels in your pass rules,
 you'll get per label counters as well.
 

Thank you, Peter.

So, now I can define rule like

block in log on $ext_ip inet from any to $ext_ip label $ext_ip
pass  in on $ext_ip inet from any to $ext_ip port 22 keep sate

As you can see, ssh packets match to all rule and pass in because
last rule win. Does it mean, that I can't see ssh's packet using
command
# pfctl -sl

And if I use

block in log on $ext_ip inet from any to $ext_ip label $ext_ip
pass  in on $ext_ip inet from any to $ext_ip port 22 keep sate label $ext_ip

... I see label twice ?

Perhaps you know where I can find workable example of this?

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


Re: sshd behaviour

2005-03-16 Thread Eugene M. Minkovskii
On Wed, Mar 16, 2005 at 10:00:44AM -0600, Nathan Kinkade wrote:
 
 As another poster mentioned, the problem is likely related to DNS, and I
 have experienced it as well.  If you are using Privilege Separation,
 then an sshd process will chroot itself into /var/empty before
 performing authentication.  /var/empty is itself usually empty.  One
 thing you can do is to make the dir /var/empty/etc and then drop a copy
 of your /etc/hosts file into the newly created /var/empty/etc/
 directory.  You might want to make sure that the hosts file contains a
 mapping to the LAN machines which you want to ssh from.
 
 Keep in mind that /var/empty has the schg flag set, so you won't be able
 to copy anything to it without disabling this first.  See more at `man
 chflags`.  Try something like this:
 
 # chflags -R noschg /var/empty
 # mkdir /var/empty/etc
 # cp /etc/hosts /var/empty/etc
 # chflags -R schg /var/empty
 
 This will likely clear up your problem.
 
 Nathan

Thank you, Nathan. Can I put soft link into /var/empty/etc (this
is crossdevice link, and I can't put hard link in it)? And does I
realy need -R key in last command which you recomended? This mean
that directory /var/empty/etc has schg flag too. Is it nessesery?



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


sshd behaviour

2005-03-15 Thread Eugene M. Minkovskii
Hi. I see strange to me behaviour of sshd. Please tell me is it
bug or feature?

I use following network configuration:

########
# LAN # - # gateway # - # router #
########

Gateway machine has sshd. Normally I work from LAN on the gateway
good. But when connection with provider's router broken:

######  ##
# LAN # - # gateway # -X- # router #
######  ##

I can't login from LAN to gateway. Moreover, I can't login from
gateway to itself, using loop interface. But other Network
servicec working good. For example, I can do
# telnet gateway 25
from LAN.

Provider's router is default router in /etc/rc.conf.

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


mutt working throu NFS only in read-only

2005-03-08 Thread Eugene M. Minkovskii
Hello, I have some trouble in NFS configure. I need to read mail
through NFS. So I say on the server:

[EMAIL PROTECTED] cat /etc/exports:
/var/mail 172.16.0.2

On client:
[EMAIL PROTECTED] sudo mount_nfs 172.16.0.1:/var/mail ~user/mnt/nfs
[EMAIL PROTECTED] ls -l ~user/mnt/nfs
...
-rw---  1 user   user   28610895  8  10:06 user
...
[EMAIL PROTECTED] mutt -f ~user/mnt/nfs/user

All working good, except one: mutt open this mailbox only in
read-only variant :(

Can I change this? You can see in ls command above --- I can read
and write my mailbox. For example, I try to change this file
using vim, and have a success

==
[EMAIL PROTECTED] mutt -v
Mutt 1.4.2.1i (2004-02-12)
Copyright (C) 1996-2002 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: FreeBSD 5.3-RELEASE-p5 (i386) [using ncurses 5.2]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
-USE_FCNTL  +USE_FLOCK
+USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL  
+HAVE_REGCOMP  -USE_GNU_REGEX  +COMPRESSED  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
+HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO  
-ISPELL
SENDMAIL=/usr/sbin/sendmail
MAILPATH=/var/mail
PKGDATADIR=/usr/local/share/mutt
SYSCONFDIR=/usr/local/etc
EXECSHELL=/bin/sh
-MIXMASTER
To contact the developers, please mail to [EMAIL PROTECTED].
To report a bug, please use the flea(1) utility.

vvv.initials
1.3.28.nr.threadcomplete
rr.compressed

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


Re: sshd

2005-03-01 Thread Eugene M. Minkovskii
On Wed, Mar 02, 2005 at 08:00:13AM +0100, Stevan Tiefert wrote:
 Hello list,
 
 when I am watching the /var/log/auth.log I see many missed logins from
 IP-addresses I never tried to login from. Am I right that they is a hacker
 trying to login on my mashine, because he was using loginnames I never
 created on my mashine like patrick, lydia, green, admin, and so on...?
 
 With regards
 Stevan Tiefert

It seems to you are right. If you know that you go to you mashine
only from one or two IP, you can write it in your firewall. For
example, if you use ipfw:

ext_if=rl0
trusted_ip=1.2.3.4,3.4.2.1
ipfw add allow tcp from $trusted_ip to me ssh in recv $ext_if
ipfw add allow tcp from me ssh to $trusted_ip out xmit $ext_if

Or something else.


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

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


crontab synatx

2005-02-28 Thread Eugene M. Minkovskii
Hello.

I put in my crontab following string:

# min hour mday month wday command
0 7*/3   * *   echo Hello world

So, I hope, this command will be workind every third day:
3,6,9,12 etc, because at man crontab we read:

man 5 crontab
For example, ``0-23/2'' can be used in the hours field to specify
command execution every other hour (the alternative in the V7
standard is ``0,2,4,6,8,10,12,14,16,18,20,22'').
/man 5 crontab

But, my command worked at 28 feb, and 1 march.

Other case I type

# min hour mday month wday command
0 7*/14   * *   echo Hello world

And this is work at 15 febr. Is it bug or feature? Perhaps
crontab count day of month from zero? If so, when should work
command if I type directly number of day:

# min hour mday month wday command
0 714   * *   echo Hello world

And how will be counted months?



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


cna't ssh localhost

2005-02-23 Thread Eugene M. Minkovskii
Hi, I'm in trubble now, and don't know what to think about...

I'm install FreeBDS 5.3. stable from DVD iso. This is fresh
system: I'm not recompile the kernel and working with GENERIC
kernel. This means that I don't use any firewall and ip filter.

Now, I configure net interface in  /etc/rc.conf:

...
ifconfig_rl0=inet 172.16.0.2  netmask 255.255.255.252
defaultrouter=172.16.0.1
...

then I type following

$ ssh 127.0.0.1

But connection hang up, of course, I can't do ssh from gateway
(172.16.0.1) to localhost (172.16.0.2) too.


# BUT! #


If I comment line with defaultrouter in rc.conf:

...
ifconfig_rl0=inet 172.16.0.2  netmask 255.255.255.252
#defaultrouter=172.16.0.1
...

and reboot, connecion working good: ssh 127.0.0.1 work, and ssh
from gateway to local mashine work good.

If I, after that type manually

$ sudo route add 0.0.0.0 172.16.0.1

connection to loop interface hangs again.

Have you any ideas?

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


can't remove directory

2005-01-06 Thread Eugene M. Minkovskii
Hi!

some months ago I'm install FreeBSD 5.2.1 on my PC. When I do it
I set default partition size. For example /var has 256 Mb. After
some time I found that It is too small for me. I move a lot of
directory to /usr and make symlinks to it:

mkdir /usr/var
mv /var/tmp /var/mail /var/log /usr/var
cd /var
ln -s /usr/var/tmp
ln -s /usr/var/mail
ln -s /usr/var/log

All of this working nice, except one: I cant remove /var/tmp.
Only rename working. In this directory placed one dyeless
directory /var/tmp/temproot/var/empty.

How can I remove this directory? I try to fsck -y in single user
momde, I trying rm -rf /var/tmp/temproot/var/empty in single user
mode with only /var mounted. But All of this useful.


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


Re: sendmail and mbox permissions

2005-01-06 Thread Eugene M. Minkovskii
On Thu, Jan 06, 2005 at 12:14:05AM +0100, J65nko BSD wrote:
 On Wed, 5 Jan 2005 23:23:29 +0300, Eugene M. Minkovskii [EMAIL PROTECTED] 
wrote:
  Hi.
  
  I use FreeBSD 5.3 and sendmail. When root rechieve the mail,
  mailbox's (/var/mail/root) permission bits has been setted to
  600. Who and how it does? Can I change this behavior?
  
  --
 For security reasons, the root account should not receice any mail.
 One of sendmail's alternatives qmail will even NEVER send any mail
 to the root account.
 
 Enter an alias for root in /etc/mail/aliases and run the newaliases 
command.

Yes, I know this reasons, but I want to know what happens. Who
change permissions on /var/mail/root. Why I see it in FreeBSD 5.3
and don't see in FreeBSD 5.2.1?

What do you mean don't rechive any mail? mach daemond, mail to
root they reports and I want easy way to reading it.

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


Re: can't remove directory

2005-01-06 Thread Eugene M. Minkovskii
On Thu, Jan 06, 2005 at 01:03:31AM -0800, Ted Mittelstaedt wrote:
 What is the error message when you:
 
 cd /var/tmp
 
 rm -r temproot
 
 as the root user?
 
 Ted

Sorry Ted. System write Operation not permitted:

rm: /var/old-tmp/temproot/var/empty: Operation not permitted
rm: /var/old-tmp/temproot/var: Directory not empty
rm: /var/old-tmp/temproot: Directory not empty
rm: /var/old-tmp: Directory not empty


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Eugene
  M. Minkovskii
  Sent: Thursday, January 06, 2005 12:55 AM
  To: freebsd-questions@freebsd.org
  Subject: can't remove directory
 
 
  Hi!
 
  some months ago I'm install FreeBSD 5.2.1 on my PC. When I do it
  I set default partition size. For example /var has 256 Mb. After
  some time I found that It is too small for me. I move a lot of
  directory to /usr and make symlinks to it:
 
  mkdir /usr/var
  mv /var/tmp /var/mail /var/log /usr/var
  cd /var
  ln -s /usr/var/tmp
  ln -s /usr/var/mail
  ln -s /usr/var/log
 
  All of this working nice, except one: I cant remove /var/tmp.
  Only rename working. In this directory placed one dyeless
  directory /var/tmp/temproot/var/empty.
 
  How can I remove this directory? I try to fsck -y in single user
  momde, I trying rm -rf /var/tmp/temproot/var/empty in single user
  mode with only /var mounted. But All of this useful.
 
 
  --
  Sensory  yours, Eugene  Minkovskii
   ,
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

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


Re: can't remove directory

2005-01-06 Thread Eugene M. Minkovskii
On Thu, Jan 06, 2005 at 05:20:55AM -0500, Chuck Swiger wrote:
 Eugene M. Minkovskii wrote:
 On Thu, Jan 06, 2005 at 01:03:31AM -0800, Ted Mittelstaedt wrote:
  What is the error message when you:
 [ ...steps removed... ]
 Sorry Ted. System write Operation not permitted:
 
 rm: /var/old-tmp/temproot/var/empty: Operation not permitted
 rm: /var/old-tmp/temproot/var: Directory not empty
 rm: /var/old-tmp/temproot: Directory not empty
 rm: /var/old-tmp: Directory not empty
 
 Ah, what's happened is that the system immutable flag has been set on that 
 directory.  You'll need to do:
 
   chflags -R noschg /var/old-tmp
   rm -rf /var/old-tmp
 

Thank you, Chuck. It's work. 

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


sendmail and mbox permissions

2005-01-05 Thread Eugene M. Minkovskii
Hi.

I use FreeBSD 5.3 and sendmail. When root rechieve the mail,
mailbox's (/var/mail/root) permission bits has been setted to
600. Who and how it does? Can I change this behavior?

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


Re: Something wrong in stable 5.3?

2005-01-01 Thread Eugene M. Minkovskii
On Fri, Dec 31, 2004 at 05:44:51AM -0600, Nikolas Britton wrote:
 Peter Ulrich Kruppa wrote:
 
 On Thu, 30 Dec 2004, Tom Connolly wrote:
 
 Eugene M. Minkovskii wrote:
 
 Hi!
 
 I'm confusing now: about a month ago I have upgrated from FreeBSD
 5.2.1 to stable 5.3. Since this moment strange things have been
 happens on my PC. Usually system works Ok, and can be run as long as
 I need without errors. But sometime, (after a little time after the
 boot) all begin crashed (core dump --- signal 11). Crashed base
 utility, like `cat', `sh' etc.
 
 Today I have cvsup'ed to stable 5.3 again, and build world again, but
 problem don't go away.
 
 I don't understand what I should do to detect source of problem...
 
 Have you any idea?
 
 
 Check the power supply.
 
 ... and your hard disk. You have some kind of hardware problem.
 
 Regards,
 
 Uli.
 
 What do you mean by stable 5.3 if you are tracking 5-STABLE (RELENG_5) 
 then this could be the problem. If you are change cvsup to RELENG_5_3 
 and try again, if you are tracking RELENG_5_3 then yes I'd say it was a 
 hardware problem too. Power supply, Ram, or something overheating are 
 likely suspects for random problems.


Thanks, may problem not in hard or fan. Because 5.2.1 I using
whell. About stable 5.3 I mean tag=RELENG_5 So do you mean
RELENG_5 and RELENG_5_3are different branches?

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


Something wrong in stable 5.3?

2004-12-30 Thread Eugene M. Minkovskii
Hi!

I'm confusing now: about a month ago I have upgrated from FreeBSD
5.2.1 to stable 5.3. Since this moment strange things have been
happens on my PC. Usually system works Ok, and can be run as long
as I need without errors. But sometime, (after a little time
after the boot) all begin crashed (core dump --- signal 11).
Crashed base utility, like `cat', `sh' etc.

Today I have cvsup'ed to stable 5.3 again, and build world again,
but problem don't go away.

I don't understand what I should do to detect source of problem...

Have you any idea?

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


how to create /dev/fd/# ?

2004-11-14 Thread Eugene M. Minkovskii
Hi! I'm working under FreeBSD 5.2.1

I was trying to create if-filter for /etc/printcap. So, I writing
some frome handbook:

exec 31 12
/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=$GS_DEVICE \
-sOutputFile=/dev/fd/3 - -c quit

but, It's does not work --- there not device /dev/fd/3. Whn I
type in Linux

exec 31

in /dev/fd creating new node --- /dev/fd/3. But not in FreeBSD!
Now I am using temporary some work around for my printcap:

/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=$GS_DEVICE \
-sOutputFile=- - -c quit

Who can tell me: why I can't create /dev/fd/3 (evenly under
root!), and what shell I do for create this?


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


Re: how to create /dev/fd/# ?

2004-11-14 Thread Eugene M. Minkovskii
On Sun, Nov 14, 2004 at 09:37:44PM +0100, Svein Halvor Halvorsen wrote:
 
 [Eugene M. Minkovskii, 2004-11-14]
   Who can tell me: why I can't create /dev/fd/3 (evenly under
   root!), and what shell I do for create this?
 
 see fdescfs(5)

Ok, I was reading this, and what? What shell I do in the bash?

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


sane-plustek backend does not work

2004-11-04 Thread Eugene M. Minkovskii
Hello!

I using FreeBSD 5.2.1 and try to use scanner: Cannon LIDE 30.
it is USB scanner.

so, I compile kernel with
# USB support
device  uhci# UHCI PCI-USB interface
device  ohci# OHCI PCI-USB interface
device  usb # USB Bus (required)
device  ugen# Generic
device  uhid# Human Interface Devices
device  ukbd# Keyboard
device  ulpt# Printer
device  umass   # Disks/Mass storage - Requires
scbus and da
device  ums # Mouse
device  uscanner# Scanners

after that I compile sane-backend port

Now, when I attach the scanner I can see:

# dmesg|tail
ugen0: Canon CanoScan, rev 1.10/1.00, addr 2
== success, thinking I.

# sane-find-scanner -q
found USB scanner (vendor=0x04a9, product=0x220e) at libusb:/dev/usb2:/dev/ugen0
== success, thinking I.
== moreover, in man sane-plustek we can read thet Canon has
== vendor code 0x04a9, and LIDE 30 has product id 0x220e. Right!

# vim /usr/local/etc/sane.d/plustek.conf
== In this file I comment all and write:
== [usb] 0x04a9 0x220e
== devices /dev/ugen0

# scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
== Oops!

All of my efforts to edit /usr/local/etc/sane.d/plustek.conf,
does not lead success.



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


Re: sane-plustek backend does not work

2004-11-04 Thread Eugene M. Minkovskii
On Thu, Nov 04, 2004 at 08:34:38PM +0100, [EMAIL PROTECTED] wrote:
 On Thu, Nov 04, 2004 at 08:30:23PM +0300, Eugene M. Minkovskii wrote:
  Hello!
  
  I using FreeBSD 5.2.1 and try to use scanner: Cannon LIDE 30.
  it is USB scanner.
 
 Here's my setup for the LIDE 30:
 
 /usr/local/etc/sane.d/plustek.conf:
 ---
 
 # Plustek-SANE Backend configuration file
 # For use with LM9831/2/3 based USB scanners
 
 [usb] 0x04A9 0x220E
 option lampOff 120
.skiped.
 
 device /dev/uscanner0
 
 

Thank's.
All of instrucktions looks good, but when I do it it's breaks :(.

I think may be I have wrong kernel? I have done static kernel
with no modules.

cat /etc/make.conf
..
NO_MODULES=yes
..

perhaps it may be important?

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


Re: sane-plustek backend does not work

2004-11-04 Thread Eugene M. Minkovskii
On Thu, Nov 04, 2004 at 05:29:19PM -0700, Warren Block wrote:
 On Thu, 4 Nov 2004, Eugene M. Minkovskii wrote:
 
 I using FreeBSD 5.2.1 and try to use scanner: Cannon LIDE 30.
 it is USB scanner.
 
 so, I compile kernel with
 # USB support
 device  uscanner# Scanners
 
 after that I compile sane-backend port
 
 Now, when I attach the scanner I can see:
 
 # dmesg|tail
 ugen0: Canon CanoScan, rev 1.10/1.00, addr 2
 == success, thinking I.
 
 ugen0 instead of uscanner0 means it is not seeing it as a scanner, just 
 an unidentified USB device.  5.2.1 may not have had IDs for this 
 scanner; see if /usr/src/sys/dev/usb/usbdevs.h contains this line (which 
 will probably wrap when viewed):
 
 #define USB_PRODUCT_CANON_N1240U  0x220e  /* CanoScan N1240U */
 
 If it does have that line, try a kernel recompile and reinstall again. 
 Otherwise, maybe a cvsup to 5.3 is in order.
 
 -Warren Block * Rapid City, South Dakota USA

This line allready present in my /usr/src/sys/dev/usb/usbdevs.h,
and I was compiled my kernel about a week ago. Do you think I
need some patch?


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


cdda2wav: Fatal error: did not drop root privilege

2004-09-16 Thread Eugene M. Minkovskii
My cdda2wav did not work under user (but work under root).
I was trying to set suid bit but don't take success. What do yuo
think about?

--- begin paste of my tty -

[emin:~]$ cat /etc/fbtab
/dev/ttyv0 0660 /dev/fd0:/dev/acd0

[emin:~]$ ll /dev/{a,}cd0
crw-rw  1 emin  emin4,  12 10  19:24 /dev/acd0
crw-r-  1 root  operator4,  20 10  19:24 /dev/cd0

[emin:~]$ id
uid=1001(emin) gid=1001(emin) groups=1001(emin), 5(operator)
## So you can see: I am in operator group

[emin:~]$ sudo chmod 4110 /usr/local/bin/cdda2wav
[emin:~]$ ll /usr/local/bin/cdda2wav
---s--x---  1 root  operator  240964  6   2003
/usr/local/bin/cdda2wav*

[12:49:01]0[emin:~]$ /usr/local/bin/cdda2wav -B
Type: ROM, Vendor 'TEAC' Model 'CD-552E ' Revision
'1.00' MMC+CDDA
266240 bytes buffer memory requested, 4 buffers, 27 sectors
...
percent_done:
  0%Fatal error:  did not drop root privilege.
  0%child reader sem request failed

W Child exited with 2
[emin:~]$ 

--- end paste of my tty -
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]