Search Results

Search: Posts Made By: pjottum
2,681
Posted By pjottum
But that's exactly what the script produces, all...
But that's exactly what the script produces, all dirs in .home that do not have an entry in /etc/passwd. I've tested it now :)
2,681
Posted By pjottum
something like.. LIST=`grep home /etc/passwd |...
something like..
LIST=`grep home /etc/passwd | cut -d':' -f6 | cut -d/ -f3`
for I in `ls /home`; do
echo $LIST | grep -q $I
[ $? -eq 0 ] || ([ -d /home/$I ] && echo /home/$I )
done

not...
2,742
Posted By pjottum
Well, PATH is your PATH. So if you run a...
Well, PATH is your PATH.
So if you run a command, your shell will search through the PATH variable. Each value, remember the : to be a field separator, stands for a directory. So, the shell...
2,742
Posted By pjottum
will give error, as $PATH will be expanded to...
will give error, as $PATH will be expanded to /usr/bin:/usr/ucb:/etc:/usr/sbin:.:/usr/platform/sun4u/sbin and you will enter cd /usr/bin:/usr/ucb:/etc:/usr/sbin:.:/usr/platform/sun4u/sbin
on the...
3,913
Posted By pjottum
Yep. That was my question as well. ...
Yep. That was my question as well.



Maybe, but Awk looks awksome offcourse. But I think both these problems might be an overkill for the problem gayathri is trying to solve; it's probably...
3,913
Posted By pjottum
grep
you could do something like this:

USER=whoevertheuseris
[ who | grep -q $USER ] && start daemon.

I'm wondering though, how are you gonna start this?
2,072
Posted By pjottum
dd some data on the disk. First, skip some...
dd some data on the disk.
First, skip some blocks of the disk and write some random data.
dd if=/dev/urandom bs=1024 count=1 of=/dev/disk seek=10353
17,514
Posted By pjottum
the * will be evaluated bij the shell, if there's...
the * will be evaluated bij the shell, if there's nothing to remove, it'll give an error.

send the std-err to the std-out:

rm * > /dev/null 2>&1
12,497
Posted By pjottum
Eh if [ $(whoami) != "root" ] ; then ...
Eh

if [ $(whoami) != "root" ] ; then
command
else
su root -c command
fi

the su will ask for a password.

it would be a better idea to use sudo:
if [ $(whoami) != "root" ] ;...
Forum: HP-UX 01-15-2008
43,313
Posted By pjottum
try swapinfo, it'll give the information you...
try swapinfo, it'll give the information you need.

don't use top on ux, use glance.
68,939
Posted By pjottum
Well, it seems to me the output should somewhere...
Well, it seems to me the output should somewhere say something about offering a key, and failing to do so.

The sshd-log is in your syslog.

It'll say something about the rights of the directory,...
68,939
Posted By pjottum
What does the ssh-log say on the remote server? ...
What does the ssh-log say on the remote server?
Could you post this?
Second, could you post the output off the following command from the client system (as user informat) to the server system:
ssh...
68,939
Posted By pjottum
no, home is the homedirectory. (eg. ~)
no, home is the homedirectory. (eg. ~)
68,939
Posted By pjottum
Also check the permissions on the homedirectory....
Also check the permissions on the homedirectory. Max is 775, better is 755.
4,151
Posted By pjottum
could you be a bit more specific?
Erm, what dns details?
You could mean something like:
a. `hostname`
b. host `hostname`
c. cat /etc/resolv.conf
d. all off the above
Forum: HP-UX 12-14-2007
7,347
Posted By pjottum
Certification isn't a bad thing; it proofs at...
Certification isn't a bad thing; it proofs at that time, you at least knew something.

More important, it gives non-technical recruiters something to hold on to.
As there are certainly more...
Showing results 1 to 16 of 16

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