Skip to contentSkip to conversation

/etc/skel failure

DISCUSSION Frank Cox 1 participant 2 messages Sep 29, 2007 – Sep 30, 2007

lore
Share & tools
lore

Frank Cox

author
#0 lore raw

I have had this happen before, but just now figured out exactly what's going on.

I still don't know why.

I create a user and run dosemu, then go into ~/.dosemu/drive_c and make a symbolic link to another directory: ln -s /opt/data/test .

Now I have a link in ~/.dosemu/drive_c that goes to /opt/data/test and if I load dosemu and type "cd test" it takes me to /opt/data/test just like it should.

I use that user's home directory to create a /etc/skel directory for creating new users home directories from.

When I create a new user with that /etc/skel in place, I have a link to /opt/data/test in ~/.dosemu/drive_c just like I should.

But:

dosemu doesn't see it.

In the dosemu window, I type "dir" and cant' see TEST listed at all. "cd test" doesn't work.

Removing ~/.dosemu from the new user's directory and running dosemu and adding the link works as expected.

The short form of the story is that I can't have a symbolic link in ~/.dosemu/drive_c as part of an /etc/skel profile and have it actually work.

Signature · 1 line
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
author
#1 lore raw
Quoted 2 lines · On Sat, 29 Sep 2007 16:56:46 -0600 Frank Cox <[email protected]> wrote:

The short form of the story is that I can't have a symbolic link in ~/.dosemu/drive_c as part of an /etc/skel profile and have it actually work.

After further experimentation, I'm starting to think there is something more fundamentally strange going on here.

If I create a new user when the .dosemu directory is set up by /etc/skel, I load dosemu and do a dir I get the directory listing that is actually in /usr/share/dosemu/drive_z.

If I delete .dosemu in my new user's directory and then run dosemu and do a dir I see what is in .dosemu/drive_c like I expected.

It seems to be looking in the wrong place for drive C when the .dosemu directory is set up from /etc/skel, and it straightens itself out if it's allowed to create its own .dosemu directory instead.

Some kind of a redirection problem?

Signature · 1 line
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com