Re: [osol-discuss] Write privileges in Sparse root zone

2007-07-23 Thread James Carlson
=?KSC5601?B?sei+1sH4?= writes:
  What are you actually trying to accomplish?  A separate /usr runs the
  risk of getting out of sync with the global zone (and perhaps even the
  kernel), regardless how conscientious the patching utilities are.
 
  Are you trying to write to anywhere in /usr, or are you actually trying
  to gain the ability to have a writable /usr/local?
 
 Actually, I wondered if it was possible to make /usr writable at first. 
 However it seems that there is no way for it in sparse roo zone.
 
 Is there any way to have /usr/local writable?

Yes.  Use a lofs mount on /usr/local.  Search the FAQ:

  
http://www.google.com/search?hl=enq=site%3Aopensolaris.org+faq+usr%2FlocalbtnI=I'm+Feeling+Lucky

-- 
James Carlson, Solaris Networking  [EMAIL PROTECTED]
Sun Microsystems / 1 Network Drive 71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Write privileges in Sparse root zone

2007-07-22 Thread ??????

 What are you actually trying to accomplish?  A separate /usr runs the
 risk of getting out of sync with the global zone (and perhaps even the
 kernel), regardless how conscientious the patching utilities are.

 Are you trying to write to anywhere in /usr, or are you actually trying
 to gain the ability to have a writable /usr/local?

Actually, I wondered if it was possible to make /usr writable at first. However 
it seems that there is no way for it in sparse roo zone.

Is there any way to have /usr/local writable?
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Write privileges in Sparse root zone

2007-07-20 Thread Nils Nieuwejaar
On Fri 07/20/07 at 15:38 PM, [EMAIL PROTECTED] wrote:
 Hello,
 
 I know that /usr directory is mounted as read-only in default in a sparse
 root zone.
 
 Is there no way to give specific users write privileges to /usr in a
 sparse root zone either using Solaris's role privileges or using sudo?

No.  This isn't a file permission issue; it's a characteristic of the file
system itself.  This is similar to asking if there's a privilege to give a
user the ability to write to a read-only CDROM device.

Even if you could do this, you _really_ wouldn't want to.  Any change to
/usr in this zone would affect every other sparse root zone as well as the
global zone.  A root user within this zone could completely trash your
machine.

 Is it possible remove /usr from inherit-pkg-dir entries?

Not after the zone has been installed.  If you were allowed to do that, you
would end up with a zone that has no /usr directory at all.

Nils
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Write privileges in Sparse root zone

2007-07-20 Thread Chrysek W.
But is there a way to install zone with its own /usr that is not taken
from globalzone right?

On 7/20/07, Nils Nieuwejaar [EMAIL PROTECTED] wrote:
 On Fri 07/20/07 at 15:38 PM, [EMAIL PROTECTED] wrote:
  Hello,
 
  I know that /usr directory is mounted as read-only in default in a sparse
  root zone.
 
  Is there no way to give specific users write privileges to /usr in a
  sparse root zone either using Solaris's role privileges or using sudo?

 No.  This isn't a file permission issue; it's a characteristic of the file
 system itself.  This is similar to asking if there's a privilege to give a
 user the ability to write to a read-only CDROM device.

 Even if you could do this, you _really_ wouldn't want to.  Any change to
 /usr in this zone would affect every other sparse root zone as well as the
 global zone.  A root user within this zone could completely trash your
 machine.

  Is it possible remove /usr from inherit-pkg-dir entries?

 Not after the zone has been installed.  If you were allowed to do that, you
 would end up with a zone that has no /usr directory at all.

 Nils
 ___
 opensolaris-discuss mailing list
 opensolaris-discuss@opensolaris.org

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Write privileges in Sparse root zone

2007-07-20 Thread Darren J Moffat
Chrysek W. wrote:
 But is there a way to install zone with its own /usr that is not taken
 from globalzone right?

Yes, but that happens at initial zone install time by creating what is 
called a whole root zone.  You can't change this after install, it 
isn't just /usr there are other directories as well the zone is 
fundamentally installed a different way.

-- 
Darren J Moffat
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Write privileges in Sparse root zone

2007-07-20 Thread Brandon Hume
On Fri, 2007-07-20 at 10:25 -0400, Chrysek W. wrote:
 But is there a way to install zone with its own /usr that is not taken
 from globalzone right?

What are you actually trying to accomplish?  A separate /usr runs the
risk of getting out of sync with the global zone (and perhaps even the
kernel), regardless how conscientious the patching utilities are.

Are you trying to write to anywhere in /usr, or are you actually trying
to gain the ability to have a writable /usr/local?

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Write privileges in Sparse root zone

2007-07-20 Thread Nils Nieuwejaar
On Fri 07/20/07 at 10:25 AM, [EMAIL PROTECTED] wrote:
 But is there a way to install zone with its own /usr that is not taken
 from globalzone right?

Sure.  That's a whole root zone.
http://docs.sun.com/app/docs/doc/817-1592/6mhahuoor?l=ena=view
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org