All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
bash login
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
bash login - May 13, '05, 6:01:43 PM
|
|
|
wekempf
Posts: 8
Joined: May 12, '05,
Status: offline
|
I'm running bash with the following shortcut:
%windir%\system32\psxrun.exe -u -p /usr/local/bin/rxvt -- rxvt -ls -rv -e /usr/local/bin/bash -li
The thing that confuses me is the following:
bash-3.00$ who
bash-3.00$ finger
No one logged on.
bash-3.00$ finger wkempf
Login: wkempf Name: Kempf
Directory: /net/foo/home/wkempf Shell: /bin/sh
Office: William, Software Engineer
Never logged in.
No Mail.
No Plan.
If I run the installed KSH shortcut I get:
bash-3.00$ finger wkempf
Login: wkempf Name: Kempf
Directory: /net/foo/home/wkempf Shell: /bin/sh
Office: William, Software Engineer
Never logged in.
No Mail.
No Plan.
I'm curious why I always get "Never logged in." I'm more curious why bash isn't recording me as logged in. Anyone have any info for me.
< Message edited by wekempf -- May 13, '05, 6:17:44 PM >
|
|
|
RE: bash login - May 15, '05, 3:50:53 AM
|
|
|
Rodney
Posts: 3696
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
The information that finger uses comes from the /var/adm/utmpx file.
This file will only be created if you're installed on an NTFS filesystem.
Otherwise the security is so low it's not trustable, so it's not made.
Do you have SFU installed on a FAT filesystem ?
|
|
|
RE: bash login - May 16, '05, 9:56:38 AM
|
|
|
wekempf
Posts: 8
Joined: May 12, '05,
Status: offline
|
Nope. I run only NTFS. From my other post you know my home directory is on a network share, and I'm not 100% sure that the share is NTFS, but I'd guess that it is. In any event, /var isn't on this share, it's on my local file system which is NTFS.
And finger does return a lot of valid data in my post. It's only the number of times logged in that remains 0. The other issue is with bash not determining that I'm signed in at all, using both finger and who. whoami, on the other hand, has no problems.
|
|
|
RE: bash login - May 16, '05, 12:18:37 PM
|
|
|
Rodney
Posts: 3696
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
> I run only NTFS
okay, good. FAT is the most obvious reason usually.
Your home directory being a network share doesn't have anything to do with it.
|
|
|
RE: bash login - May 16, '05, 12:30:09 PM
|
|
|
wekempf
Posts: 8
Joined: May 12, '05,
Status: offline
|
Well, I've figured a little out about this. Seems if I create a shortcut identical to the Korn Shell shortcut but invoking bash instead, i.e. "C:\WINDOWS\system32\POSIX.EXE /u /c /usr/local/bin/bash -l" then everything is fine (well, except that it still reports I've never logged in instead of reporting the last time I logged in). So the problem is in the rxvt "-e" switch somehow, but this is the syntax used in Cygwin and all attempts at quoting have resulted in the rxvt not starting. So I'm not sure how to get rxvt to start a login shell properly under Interix.
|
|
|
RE: bash login - May 16, '05, 12:44:27 PM
|
|
|
Rodney
Posts: 3696
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Yes, I see that with '-e'.
It may be something in the port of rxvt then.
Which version of rxvt are you running then?
|
|
|
RE: bash login - May 16, '05, 1:48:46 PM
|
|
|
wekempf
Posts: 8
Joined: May 12, '05,
Status: offline
|
2.6.4 which should be the latest available via pkg_update.
|
|
|
RE: bash login - Jun. 6, '05, 2:03:13 PM
|
|
|
Rodney
Posts: 3696
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Actually version 2.7.10a has been the current version for some time.
There was some discussion about which version-line should be followed
because 2.7 was marked development while 2.6 was marked stable.
To that the 2.6.4 package was made to conflict with 2.7.10 so that
people would not "accidentally" upgrade by version number. But 2.7.10a seems
to be okay by all accounts by the members involved. So you should try
2.7.10a now. You'll need to explicitly uninstall 2.6. So:
pkg_delete rxvt-2.6-bin
pkg_update -L rxvt
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|