vendredi, le 4 janvier, 2002, Gary Wynn nous a dit ceci:
> I am having problems accessing DOSEMU to run it. A technician set it
> up on my machine for me, but I cannot get it to run. Here is what I
> get:
>
> DOSEMU will run on _this_ terminal.
> To exit you need to execute 'exitemu' from within DOS,
> because <Ctrl>-C and 'exit' won't work!
>
> Hint: if you want $HOME as DOS drive D:, use '-home' option
>
> Now type ENTER to start DOSEMU or <Ctrl>C to cancel\n
>
> ENTER
> permission denied
>
> I am running RHL 7.1 on a pentium III. I am running in text mode only.
> I did a chmod 777 *.* on the dosemu directory, and a chown gary.users
> on that same directory.
>
> I get:
> total 44
> drwxr-xr-x 6 root root 4096 Jan 4 14:36 .
> drwxr-x--- 12 root root 4096 Jan 4 14:33 ..
> drwxr-xr-x 2 root root 4096 Sep 18 17:18 bin
> drwxr-xr-x 2 root root 4096 Sep 18 17:21 conf
> -rwxrwxrwx 1 500 gopher 10214 Jun 2 2001 dosemu
> -rwxrwxrwx 1 gary users 367 Jun 10 2001 FDchange.log
> drwxr-xr-x 9 root root 4096 Sep 18 17:18 freedos
> -rwxrwxrwx 1 gary users 2997 Jun 10 2001 README.bindist
> lrwxrwxrwx 1 500 gopher 6 Sep 18 17:18 xdosemu -> dosemu
> drwxr-xr-x 2 root root 4096 Sep 18 17:18 Xfonts
>
> I am *very* new to linux, so I do not understand why gopher appears
> here. Also, I do not know why I cannot seem to change it, or how
> dosemu can be run if gopher appears as the group.
First, in MS-DOS, "*.*" means "all files," but in most Linux (and UNIX)
shells, "*.*" means "all files which have a dot in the name, but don't
begin with a dot." If you really want to change all files, use "*"
instead of "*.*". And, if you want to change files whose name begins
with ".", you'll need to use ".*" as well. Be careful, as that pattern
includes the file "." (the current directory) and the file ".." (the
parent directory,) so, if you use a recursive command, it'll recurse up to
the parent, and back down into neighbouring directories.
Second, guessing somewhat: From your listing above, the parent directory
(..) is set to allow read/write/search for user "root", and "read/search"
for users in group "root". I'll bet your user "gary" is not a member of
group "root", which means it can't find the dosemu directory, because it
can't search the parent directory.
You might want to run these two commands, from that directory:
chown -R root.root .
chmod a+x .
which will change the ownership of the dosemu directory, and all files
and directories within it, recursively, to root.root, then add search
permissions to the parent directory, allowing any user on the system to
find any directory in the dosemu directory's parent directory, including
the dosemu directory.
--
"With your own code to haunt you, who needs users?"
-- Maarten Wiltink
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html