[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: executables in /xyz



On Sat, Mar 23, 2002 at 11:05:31PM +0100, Timo --Blazko-- Boewing wrote:
> Hello everyone,
> 
> i have a funny thing in my current sid (2 months old, but last update
> yesterday [dist-upgrade]) but also in the previous installation (also
> sid):
> 
> whenever i am developing in C/C++ or bash, i cannot execute the files.
> they reside in a custom folder /data/devel/[xyz]. Having controlled file
> permissions etc. and even when trying to launch'em as root, i get e.g.
> 
> bach: /data/devel/c++/!samples/test.c: permission denied
> 
> when i copy these files to my home folder or even to e.g.
> /usr/share/doc/libgtk1.3-dev/examples/base,
> they work.
> 
> I can certainly say that file perms are okay. Any ideas why these things
> won't run in my /data folder? For information: /data is another
> partition, maybe mount-options are the cause?:
> 
> /dev/hda3	/data	reiserfs	defaults,user	0	0

RTFM man mount(8)

  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 sys­
         tem again.  This option implies the options noexec, nosuid, and nodev
         (unless overridden by subsequent  options,  as in  the  option  line
         user,exec,dev,suid).  

Note that user implies noexec.

Changing your fstab to read "user,exec" should fix the problem.  Note
that defaults is redundant if any other options are specified.

-- 
Nathan Norman - Micromuse Ltd.  mailto:nnorman@micromuse.com
Gil-galad was an Elven-king.            |  The Fellowship
Of him the harpers sadly sing:          |        of
the last whose realm was fair and free  |     the Ring
between the Mountains and the Sea.      |  J.R.R. Tolkien

Attachment: pgp9_oiSPbaTe.pgp
Description: PGP signature


Reply to: