G.Vinubalaji wrote [on 17/11/03 11:25 +0530]:
> > ==============================================================
> > bash: ./configure: /bin/sh: bad interpreter: Permission denied
> > ==============================================================
>
> This usually happens to me when i try to compile packages on my other
> mounted partition. I think i need to give the proper options while
> mounting.
> I have gentoo and redhat, changed /etc/passwd of gentoo such that it has
> the same user id / group id of redhat. Thus /mnt/redhat/home/vinu is my
> home directory in gentoo with user id (/etc/passwd) and group id
> (/etc/group,/etc/passwd) as the same of that in Redhat.
> Now whenever i try to compile or execute some file on this
> directory(/mnt/redhat/home/vinu) it gives the error.
> > bash: ./configure: /bin/sh: bad interpreter: Permission denied
> If i try this on my default /home/vinu in gentoo it works properly.
>
Thanks for the tip. Also, thanks to all who replied.
The thing you mentioned was exactly what heppened in my case. It was
definitely a mount related problem.
The directory (actually it is placed in a partition) in question (/mnt/backup)
has the following line in /etc/fstab:
-------------------------------------------------------------------------
...
/dev/hda11 /home ext3 defaults 0 2
/dev/hda4 /mnt/backup ext2 user,noauto 0 2
^^^^^^^^^^^
...
-------------------------------------------------------------------------
So, after I mounted the partition as
mount -t ext2 /dev/hda4 /mnt/backup
there was no problem.
Now that the problem is solved, I would like to know what exactly caused the
problem. I found the following line in the man page for mount:
----------------------------------------------------------------------
defaults
Use default options: rw, suid, dev, exec, auto, nouser,
and async.
----------------------------------------------------------------------
Now, among those options I tried one by one to see which worked. The 'nouser'
option worked. The man page says:
---------------------------------------------------------------------
nouser
Forbid an ordinary (i.e., non-root) user to mount the file system.
This is the default.
---------------------------------------------------------------------
So, what is so special about the nouser option that could cause such a
strange behaviour? Somebody please explain this to me.
(Probably I wont be able to reply to this list for the next few days,
but I shall be checking this list from the web archive.)
Regards,
Santanu
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help