Re: [gentoo-user] Re: emerge failes

2003-11-27 Thread Spider
begin  quote
On Thu, 27 Nov 2003 09:00:44 +0100
Michael Spohn <[EMAIL PROTECTED]> wrote:

> 
> > This would imply that you need to add exec (and maybe suid) to those
> > flags.  But if defaults doesn't apply then the out-of-the-box fstab
> > which only contains noatime should not work. Try adding exec and if
> > it works you may have come across a bug in mount.
> > 
> > Jason
> 
> It works. After explicitly adding exec, and removing users, now
> everything works again. 
> 
> The question still is why did this happen? 


from man mount :
  defaults
 Use  default  options: rw, suid, dev, exec, auto,
nouser, and async.

  user   Allow an ordinary user to mount  the  file  system.
The name  of  the mounting user is written to mtab
so that he can unmount the file system again.  This 
option  implies the  options noexec, nosuid, and
nodev (unless overridden by  subsequent   options,  
as   in   the   option   line user,exec,dev,suid).

  users  Allow  every  user  to mount and unmount the file
system. This option implies the options noexec, nosuid, and
nodev (unless  overridden  by subsequent options, as in the
option line users,exec,dev,suid).




Hope that clears it up 

  //Spider

-- 
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end


pgp0.pgp
Description: PGP signature


Re: [gentoo-user] Re: emerge failes

2003-11-27 Thread Michael Spohn

> This would imply that you need to add exec (and maybe suid) to those flags. 
> But if defaults doesn't apply then the out-of-the-box fstab which only 
> contains noatime should not work. Try adding exec and if it works you may 
> have come across a bug in mount.
> 
> Jason

It works. After explicitly adding exec, and removing users, now
everything works again. 

The question still is why did this happen? 

Thank you very much for your help that saved me from starting all over
again with the installation.

Michael


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: emerge failes

2003-11-27 Thread Jason Stubbs
On Thursday 27 November 2003 16:00, Michael Spohn wrote:
> I think I got closer to the problem but still don't know what it is
> exactly. I copied the hello script:
>
> #!/bin/sh
> echo "Hello World"
>
> to /var/tmp/portage/bash-2.05b-r8/work/bash-2.05b and ./hello says
>
> bash: ./hello: /bin/sh: bad interpreter: Permission denied
>
> In fstab /var is mounted:
>
> /dev/hda9  /var  ext3  noatime,nodev,usrquota,users  0 0

I don't think any of those should cause you to not be able to execute files 
but "users" is definately a bad idea. That will allow any user to 
unmount /var at any time (as long as there are no open files).

Just checked out the man page for mount. It says:

   The full set of options used by an invocation of mount is determined by
   first  extracting the options for the file system from the fstab table,
   then applying any options specified by the  -o  argument,  and  finally
   applying a -r or -w option, when present.

This would imply that you need to add exec (and maybe suid) to those flags. 
But if defaults doesn't apply then the out-of-the-box fstab which only 
contains noatime should not work. Try adding exec and if it works you may 
have come across a bug in mount.

Jason

--
[EMAIL PROTECTED] mailing list

Re: [gentoo-user] Re: emerge failes

2003-11-27 Thread Michael Spohn

> > Out of curiosity, is this working script on a different partition than
> > the one giving you errors? Might the latter partition be mounted noexec?
> > Your error matches the one I get every time I try to execute a script in
> > /tmp, as I often forget that I have that partition mounted noexec.
> > 
> > -Eamon
> 
> Yes, /tmp is mounted noexec but /var is not. To be sure I remounted /tmp
> without nosuid and noexec. 

I think I got closer to the problem but still don't know what it is
exactly. I copied the hello script:

#!/bin/sh
echo "Hello World"

to /var/tmp/portage/bash-2.05b-r8/work/bash-2.05b and ./hello says

bash: ./hello: /bin/sh: bad interpreter: Permission denied

In fstab /var is mounted:

/dev/hda9  /var  ext3  noatime,nodev,usrquota,users  0 0

Michael


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: emerge failes

2003-11-26 Thread Michael Spohn

> Out of curiosity, is this working script on a different partition than
> the one giving you errors? Might the latter partition be mounted noexec?
> Your error matches the one I get every time I try to execute a script in
> /tmp, as I often forget that I have that partition mounted noexec.
> 
> -Eamon

Yes, /tmp is mounted noexec but /var is not. To be sure I remounted /tmp
without nosuid and noexec. It still won't emerge bash or maybe anything
thats got to be ./configure -d 

Michael


--
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: emerge failes

2003-11-26 Thread Eamon Caddigan
Michael Spohn <[EMAIL PROTECTED]> wrote:
> 
>> Are you able to run /bin/sh by itself?  My hunch is a hard drive problem
>> because everything else looks OK.
> 
> No problem at all.
> 
> Even a script "hello"
> 
> #!/bin/sh
> echo "Hello World"
> 
> produces "Hello World"

Out of curiosity, is this working script on a different partition than
the one giving you errors? Might the latter partition be mounted noexec?
Your error matches the one I get every time I try to execute a script in
/tmp, as I often forget that I have that partition mounted noexec.

-Eamon


--
[EMAIL PROTECTED] mailing list