On Wed, Apr 06, 2005 at 01:44:53PM +0200, Martin Steigerwald wrote:
> I found that usbmount does remove the model-name based symlinks (in
> /var/run/usbmount) of all USB drives when only one of them is removed.
> It seems that the test whether the symlinks points to a mounted
> directory does not work.

Thanks for the bug report, I will investigate.

> I did not investigate the cause for this but simply reverted to the link
> creating behaviour I did myself for a previous version of usbmount:
> 
> # Teamix: Determine user of the current X session    
> XUSER=`who | awk '$2 == ":0" {print $1}'`
> 
> # Teamix: Create a symlink in the Desktop directory of that user
> if test -n "$XUSER"; then
>   log info "creating symlink /home/$XUSER/Desktop/`basename "$mountpoint"` -> 
> $mountpoint"
>   ln -sf "$mountpoint" "/home/$XUSER/Desktop/`basename "$mountpoint"`"
> fi
> 
> # Teamix: Remove symlink in Desktop directory of that user again
> if test -n "$XUSER" && test -L "/home/$XUSER/Desktop/`basename 
> "$mountpoint"`"; then
>   log info "removing symlink /home/$XUSER/Desktop/`basename "$mountpoint"`"
>   rm "/home/$XUSER/Desktop/`basename "$mountpoint"`"
> fi

I my opinion, an automatically run script should not try to modify a
user's home directory.

My solution to the problem of making resources available to the "current
desktop user" is to make them available to the members of a Unix group.
I then use PAM to ensure that exactly the current desktop user is a
member of the groups. (Incidently, the user can circumvent this if she
or he can create setgid executables anywhere on the system.)

Cheers,
Martin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to