Re: $USER variable in AppleVolumes.system?


Subject: Re: $USER variable in AppleVolumes.system?
From: William R. Dickson (wrd@awenet.com)
Date: Wed Jul 02 1997 - 23:14:49 EDT


At 6:37 PM -0700 7/2/1997, Bill Studenmund wrote:
>On Wed, 2 Jul 1997 mt@carthage.edu wrote:
>
>> >Now, I want every user, when s/he connects, to see two things in the
>> >chooser -- the user's home directory, an the user's personal web
>> >directory. (Again, for the sake of argument, linking the web directory
>> >into the home directory isn't possible, due to a hypothetical complicated
>> >nfsmount issue.)
>
>Can't you just have a sym link in each user's home directory pointing out
>to the web directory? Just do something like:
>
>(in sh)
>for i in `cat a_list_of_users`
>do
>cd $i
>ln -s /www/users/$i WWW
>done

That's certainly an option, and it's currently the fallback plan, but being
able to use a $USER variable just seemed like a cleaner options. But if it
can't be done, it's not a huge deal.

-Bill

>
>> >Say I have the real directories:
>> >
>> >/www/users/andrea
>> >/www/users/bob
>> >/www/users/chris
>> >/www/users/deanna
>> >/www/users/effie
>> >
>> >Can I do something like this in AppleVolumes.system or
>> AppleVolumes.default?:
>> >
>> >/www/users/$USER "User WWW Directory"
>> >
>> >
>> >I know I can't do that exactly, because I tried it and it didn't work. Is
>> >there another way?
>> Bill --
>>
>> I know you can't use "$USER", but I think you can use "~/". Of course,
>> that only gets you the user's home directory, but at least that's half
>> of what you wanted.
>
>But then ~/WWW would point to a symlink which would point to the right
>place.
>
>Take care,
>
>Bill

--
 William R. Dickson -- Consuming the Earth's limited resources since 1968
 wrd@awenet.com  <>  http://www.halcyon.com/wrd/  <>  VNB3T, VSC1T, VSX1T

Neither of the people in the room paid any attention to the way I came in, although only one of them was dead.

Raymond Chandler, "The Big Sleep"



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:25:27 EST