Search Results

Search: Posts Made By: wisdom
4,328
Posted By wisdom
jlliagre I suspect that also. Answer for...
jlliagre

I suspect that also. Answer for post #15 :-


$ ls -lL /etc/wtmpx
-rw-r--r-- 1 root other 267327384 Mar 28 10:55 /etc/wtmpx
$
$
$ last -10
app-user ftp ...
4,328
Posted By wisdom
Answer for post #6 $ id -un id: illegal...
Answer for post #6

$ id -un
id: illegal option -- u
Usage: id [-ap] [user]
$
$ which id
/usr/bin/id
$


But the output is different when I used this id path:-

$ /usr/xpg4/bin/id...
4,328
Posted By wisdom
root@# echo "$w" 4:02pm up 195 day(s), ...
root@# echo "$w"
4:02pm up 195 day(s), 7:50, 1 user, load average: 5.86, 5.82, 5.72
User tty login@ idle JCPU PCPU what
wisdom pts/1 4:01pm ...
4,328
Posted By wisdom
root@ # ksh root@ # a=$(tty) root@# echo $a ...
root@ # ksh
root@ # a=$(tty)
root@# echo $a
/dev/pts/5
root@ #
4,328
Posted By wisdom
jlliagre Your question was answered. It's...
jlliagre

Your question was answered. It's just to display the real user. Just one username. Also, I actually thought it was a scripting problem and I had posted it on the wrong forum.

I...
4,328
Posted By wisdom
we've concluded for now that the weirdness of the...
we've concluded for now that the weirdness of the server must be due to the in-house passwd/authentication application that we use. It's the only server that behaves like that.

Due to policies,...
4,328
Posted By wisdom
I've just tried it on another sol8 and it worked....
I've just tried it on another sol8 and it worked. So it means it's got to be some setting on host-1 that is making it work abnormally.

The problem is I don't know what to look for?
4,328
Posted By wisdom
Running "who am i" on sol 8
Hi All

I have a ksh script, which is run as the root user. At some point in the script, it needs to check for the user that is running the script. ( The real user that su to root). This is on a...
Forum: Solaris 03-18-2011
10,081
Posted By wisdom
Hmmmm..... it works on most of my servers, execpt...
Hmmmm..... it works on most of my servers, execpt this very one. I think it must be the way this particular server was built.

It doesn't output anything now on this particular server... When I...
Forum: Solaris 03-18-2011
10,081
Posted By wisdom
Very true..... The required output is to...
Very true.....
The required output is to display the real username, instead of displaying root as the user.
who am seems to work ok on my sol 10 servers, but on this sol 8, it's not. It keeps...
Forum: Solaris 03-17-2011
10,081
Posted By wisdom
Great! works...thanks!:b: ---------- Post...
Great! works...thanks!:b:

---------- Post updated at 09:47 AM ---------- Previous update was at 09:38 AM ----------

Spoke too soon, ignore my previous post.... didn't work when I su to root and...
Forum: Solaris 03-17-2011
10,081
Posted By wisdom
sorry that does not work..... illegal option.
sorry that does not work..... illegal option.
Forum: Solaris 03-17-2011
10,081
Posted By wisdom
Help with who am i . Not displaying real user
Hi

I'm trying to get the real username of any user running as root on my server. On one of my server running Sol 10, if I su to root and run who am i, it displays my username. which is what I...
1,467
Posted By wisdom
Hi ctsgnb Great, it works now.......
Hi ctsgnb

Great, it works now.... thanks!:b: I now have two ways to run my script.
1,467
Posted By wisdom
ctsgnb This code doesn't work. It just...
ctsgnb

This code doesn't work. It just hangs, with no output. I had to ctrl C out of it. I'm using Pravin27's example, it would be nice to know how the xargs works it out though.
1,467
Posted By wisdom
Thank you Pravin27 It works like magic!:b:
Thank you Pravin27

It works like magic!:b:
1,467
Posted By wisdom
Help with reading and assigning variables
Hi Gurus,

I have a file named log with 2 lines
Each line is a file name. eg

$ cat log
monday
tuesday


I need to read log and assign each output(filename) to a different variable....
Forum: Solaris 03-09-2009
5,658
Posted By wisdom
thks frozentin.... much clearer now
thks frozentin.... much clearer now
Forum: Solaris 03-03-2009
5,658
Posted By wisdom
Help with Major and minor number
Hi

Does anyone know what the major and minor numbers are in Solaris?
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 05:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy