Re: jail stop extracting iso file

2008-09-01 Thread tethys ocean
the problem is already here "at the host system (not in the jail)" i wasnt
able to get rid of jail and can't access to device in jail
somehow i must access mdconfig and mount but i shouldnt stop jail.




On Sun, Aug 31, 2008 at 11:19 PM, Olli Hauer <[EMAIL PROTECTED]> wrote:

> > In server jail and squid is running on it  as lots of another packet. i
> > want
> > to extract iso image in this server.  But i havent do it.
> >
> > #mdconfig -a -t vnode -f big_bcbcv.iso
> > #mdconfig: open(/dev/mdctl): No such file or directory
> >
> > you can't
> >
> > jail doesn't allow it.
>
> Yes, but why don't mount the ISO at the host system and do a nullfs mount
> into the jail?
>
> at the host system (not in the jail)
> # mdconfig -a -t vnode -u 10 -f ${path_to_iso_image}
> # mount_cd9660 -o ro /dev/md10 /mnt/
> # mount_nullfs /mnt ${path_to_jail}/mnt
>
> ssh into the jail
> # pkg_add /mnt/filename
>
>
> --
> GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry
> Passion!
>
> http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
>



-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jail stop extracting iso file

2008-08-31 Thread Olli Hauer
> In server jail and squid is running on it  as lots of another packet. i
> want
> to extract iso image in this server.  But i havent do it.
> 
> #mdconfig -a -t vnode -f big_bcbcv.iso
> #mdconfig: open(/dev/mdctl): No such file or directory
> 
> you can't
> 
> jail doesn't allow it.

Yes, but why don't mount the ISO at the host system and do a nullfs mount into 
the jail?

at the host system (not in the jail)
# mdconfig -a -t vnode -u 10 -f ${path_to_iso_image}
# mount_cd9660 -o ro /dev/md10 /mnt/
# mount_nullfs /mnt ${path_to_jail}/mnt

ssh into the jail
# pkg_add /mnt/filename


-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jail stop extracting iso file

2008-08-31 Thread tethys ocean
İ see, i should extract this iso image (not using tar) may i close this
jail? and can i restart correctly? i am hesitate since squid in running on
jail? process is like

[EMAIL PROTECTED] /etc]#  ps ax -o pid,jid,args
  PIDJID COMMAND
 8415  0 /usr/local/sbin/httpd -k start
10414  0 sshd: mary [priv] (sshd)
10417  0 sshd: [EMAIL PROTECTED] (sshd)
17168  0 /usr/local/sbin/squid -D
17170  0 (squid) -D (squid)
17171  0 (unlinkd) (unlinkd)
20754  0 /usr/sbin/syslogd -ss
20871  0 /usr/sbin/sshd
35688  0 sshd: andy [priv] (sshd)
35691  0 sshd: [EMAIL PROTECTED] (sshd)
42074  0 /usr/local/sbin/munin-node (perl)
48630  0 /usr/local/sbin/httpd -k start
64266  0 screen
67740  0 /usr/local/sbin/httpd -k start
71171  0 /usr/local/sbin/httpd -k start
76426  0 /usr/local/sbin/httpd -k start
92862  0 /usr/local/sbin/httpd -k start
93912  0 sshd: alex [priv] (sshd)
93929  0 sshd: [EMAIL PROTECTED] (sshd)
93955  0 screen
10418  0 -bash (bash)
35692  0 -bash (bash)
35693  0 su -
35694  0 -su (csh)
64268  0 /usr/local/bin/bash
93930  0 -bash (bash)
93932  0 su -
93933  0 -su (bash)
93954  0 screen
93956  0 /usr/local/bin/bash
94654  0 ps ax -o pid,jid,args
[EMAIL PROTECTED] /etc]#


i think so i can stop jail by this command? (but it run)

/etc/rc.d/jail start
/etc/rc.d/jail stop


OR i can kill jail process and than /etc/rc.d/jail stop  and i can disable
in sysctl jail line

#security.jail.set_hostname_allowed=1
#security.jail.socket_unixiproute_only=1
#security.jail.sysvipc_allowed=0
#security.jail.enforce_statfs=2
#security.jail.allow_raw_sockets=0
#security.jail.chflags_allowed=0
#security.jail.jailed=0

than extract iso  file and restart jail?  possible? and it contains any
risk? since squid is so so important

since i ve read  this paper
http://www.freebsd.org/doc/en/books/handbook/jails-application.html

but i wasn't able to find some jail details/setting in this server but
neverthless jail is running

regards



2008/8/31 Robert Watson <[EMAIL PROTECTED]>

>
> On Sun, 31 Aug 2008, tethys ocean wrote:
>
>  In server jail and squid is running on it as lots of another packet. i
>> want to extract iso image in this server.  But i havent do it.
>>
>
> You are correct that direct manipulation of md(4) devices is not allowed in
> jail.  However, you may be running on a version FreeBSD in which tar(1) can
> be used to extract iso files, which is quite a bit more convenient for many
> uses.
>
> Robert N M Watson
> Computer Laboratory
> University of Cambridge
>
>
>
>> #mdconfig -a -t vnode -f big_bcbcv.iso
>> #mdconfig: open(/dev/mdctl): No such file or directory
>>
>> #ls -l /dev/md*
>> #ls -ls /dev/mdctl
>> ls: /dev/mdctl: No such file or directory
>>
>>
>> i am not familiar with jail.  only i can extract my iso file. İ suppose
>> that
>> jail stop me, jail blocking me for access some source
>>
>>
>> is it true?
>>
>> 1-how can extract this iso file
>> 2-is jail stop me?  or any other trouble about my mdctl?
>>
>> regard
>>
>>


-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: jail stop extracting iso file

2008-08-31 Thread Wojciech Puchar

In server jail and squid is running on it  as lots of another packet. i want
to extract iso image in this server.  But i havent do it.

#mdconfig -a -t vnode -f big_bcbcv.iso
#mdconfig: open(/dev/mdctl): No such file or directory

you can't

jail doesn't allow it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jail stop extracting iso file

2008-08-30 Thread Robert Watson


On Sun, 31 Aug 2008, tethys ocean wrote:

In server jail and squid is running on it as lots of another packet. i want 
to extract iso image in this server.  But i havent do it.


You are correct that direct manipulation of md(4) devices is not allowed in 
jail.  However, you may be running on a version FreeBSD in which tar(1) can be 
used to extract iso files, which is quite a bit more convenient for many uses.


Robert N M Watson
Computer Laboratory
University of Cambridge



#mdconfig -a -t vnode -f big_bcbcv.iso
#mdconfig: open(/dev/mdctl): No such file or directory

#ls -l /dev/md*
#ls -ls /dev/mdctl
ls: /dev/mdctl: No such file or directory


i am not familiar with jail.  only i can extract my iso file. İ suppose that
jail stop me, jail blocking me for access some source


is it true?

1-how can extract this iso file
2-is jail stop me?  or any other trouble about my mdctl?

regard
--
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: jail stop extracting iso file

2008-08-30 Thread Martin Tournoij
On Sun, Aug 31, 2008 at 12:08:31AM +0300, tethys ocean wrote:
> Hi all
> 
> In server jail and squid is running on it  as lots of another packet. i want
> to extract iso image in this server.  But i havent do it.
> 
> #mdconfig -a -t vnode -f big_bcbcv.iso
> #mdconfig: open(/dev/mdctl): No such file or directory
> 
> #ls -l /dev/md*
> #ls -ls /dev/mdctl
> ls: /dev/mdctl: No such file or directory
> 
> 
> i am not familiar with jail.  only i can extract my iso file. İ suppose that
> jail stop me, jail blocking me for access some source
> 
> 
> is it true?
> 
> 1-how can extract this iso file
> 2-is jail stop me?  or any other trouble about my mdctl?

You can use tar to extract iso images, i.e.:
# tar xvf image.iso

You can also use mdconfig, but you must add a devfs rule to add md devices,
i.e.:
add path 'md*' mode 0660

See devfs(8) and devfs.rules(5)

-- 
Martin Tournoij
[EMAIL PROTECTED]
http://www.daemonforums.org

QOTD:
Beware of a tall blond man with one black shoe.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


jail stop extracting iso file

2008-08-30 Thread tethys ocean
Hi all

In server jail and squid is running on it  as lots of another packet. i want
to extract iso image in this server.  But i havent do it.

#mdconfig -a -t vnode -f big_bcbcv.iso
#mdconfig: open(/dev/mdctl): No such file or directory

#ls -l /dev/md*
#ls -ls /dev/mdctl
ls: /dev/mdctl: No such file or directory


i am not familiar with jail.  only i can extract my iso file. İ suppose that
jail stop me, jail blocking me for access some source


is it true?

1-how can extract this iso file
2-is jail stop me?  or any other trouble about my mdctl?

regard
-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"