On Wednesday, Oct 23, 2002, at 12:12 America/Santiago, Birdy Complex wrote:

	So I made a new .cshrc file (in BBEdit) containing that command
and put it in Admin's directory (~/Admin).
You were logged in as Staff when you did this in BBedit, right?

However, the file's owner is
still listed as the Staff user.

 Maybe that's why the .cshrc file doesn't
seem to do anything;
It is a possibility. Go to Admins home dir and do an ls -la, that will give you everything in a list and show you hidden files. Look at the permissions for .cshrc. If you don't know how to read *nix permissions, then just say, and we'll explain. If you do, check to see that it is group readable (and world readable, just to be sure). If it isn't, make sure you are logged in as Staff and do

chmod ugo+r .cshrc

Then do ls -la again and it should show the file with these new permissions.

If it WAS group and world readable in the first place then I would have suggested to look for a .tcshrc file, but you say there isn't one there.

Hm.

Next thing might be to open a new terminal window, cd to Admin's home dir, and then do "su Admin", replacing Admin with the correct name, of course. You will now be Admin. If you say Admin is a sudoer, then why not just do

sudo chown Admin .cshrc

Also, I'd re-check the syntax of your .cshrc file, just in case.

As a last resort, just copy /sw/bin/init.csh into Admin's home dir and call it .cshrc

That isnt the ideal solution, because

a) Admins .cshrc is probably not getting read, no matter what it contains
b) If a Fink update changes init.csh, then youll be stuck with an old version and will have to remember to do the same thing again. Hopefully uoi will not have to do the same thign again because you're going to fix this problem!


it didn't give new Terminal windows the ability to
run Fink when logged in as Admin. (If anyone wants to translate my
Newbie-ese into *nix Geek, I'd be thrilled.)
I'd have to be a superuser to use chown...

It would be better to create the .cshrc file in Terminal using
pico, but the shell (not bash, so I guess it's the default shell) doesn't
recognize pico, vi, vim, or emacs. ??
This is very strange. You're saying that Admin can't use pico? There's something probably wrong with his PATH, which wouldnt surprise me, given all the trouble you're having.





Sorry, that's a lot of half-asked questions, but what I really want to
know is "How do I make Fink work in my Admin account (having installed and
set up Fink in a different account)?"


Basic answer:

If you are already logged in as Staff

open new terminal window

type su Admin

type Admins password

type cd to change to Admin's home dir.

typw pwd to convince yourself that you are in that home dir.

type /usr/bin/pico .cshrc

type in source /sw/bin/init.csh

type contro O to save and then quit pico.

type rehash.

fink should now work, as well as all the fink-installed items.

Hope all this works.

Good luck.


Paul



-------------------------------------------------------
This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en

_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to