9 More Discussions You Might Find Interesting
1. Solaris
Hi, i need autocmplete file_name/dir_name by TAB key. I work on UNIX (TRU64) and I just tried to type on .profile this setting:
set autolist
but it doesn't work. I think it is because this command doesn't belong to this UNIX version (sure it works for example on HP-UX).
I need to set it... (0 Replies)
Discussion started by: D4vid
0 Replies
2. UNIX for Advanced & Expert Users
Hi I am posting this in this area because I couldn't find a better place.
I am trying to make exact copies of my disk that I use in an old DEC3000.
I loaded the one disk then used dd
dd if=/dev/rrz0c of=/dev/rrz1c
I started this a 6pm last night here in Wales.
It is now 2pm the next day,... (4 Replies)
Discussion started by: mndavies
4 Replies
3. Shell Programming and Scripting
hi all,
I need send mail from unix tru64 to mymail@domain.com use shell script.
i saw result of "man mail", "man mailx" commands on my unix tru64 server, but i don't understand how to sent mail....
Please advice any suggestion or help? (1 Reply)
Discussion started by: Tlg13team
1 Replies
4. Linux
hi all,
How do cron restart on unix Tru64?
because don't run my cron jobs. few days age it's running fine.
I did below steps:
1. cd /usr/sbin
2. cron stop
responce: "! Cron is already running. Exiting... Tue Nov 27 14:38:00 2007"
3. cron start
responce: "! Cron is already running.... (2 Replies)
Discussion started by: Tlg13team
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am new to UNIX. I need help in working with Compaq-UX TRU64 OS.
How It work FTP Server?
ANd MAil Server?
and I have apach pprogram project and it work as HTTP Server.
Also I need how can setup a new version of progrm on UNix like mozilla and adobe reader etc...........
Thank... (3 Replies)
Discussion started by: svuad
3 Replies
6. HP-UX
Hi experts,
I hope someone can help me with these simple tasks as I am new in Unix environment.
I need to create a file system for backup purpose, therefore I need to know the commands in Unix.
1) What is the command to check my disk drives to see how much available space is not allocated... (2 Replies)
Discussion started by: kingsto88
2 Replies
7. UNIX for Dummies Questions & Answers
Hello:
I have a question here, ¿What is the ps parameter MINFLT on a Tru64 Unix OS?,
As far as I can know, it just refers to all the page swaps that have failed when accessing to the memory (RAM).
If that is true, i would like to explain my case: I have a process that runs continuosly... (0 Replies)
Discussion started by: Fco
0 Replies
8. UNIX Desktop Questions & Answers
Whick book would I get for dummies learning tru64, ie basics.
thankyou (1 Reply)
Discussion started by: jacl
1 Replies
9. UNIX Desktop Questions & Answers
Can anyone help me with tru64 unix.
We have just got a new server with this already loaded on,
we don't have the CDrom.
We are trying to establish the common features ie smit,printers,users and day to day commands.
Any help would be greatly appreciated.
thanks (8 Replies)
Discussion started by: jacl
8 Replies
GETPEEREID(3) BSD Library Functions Manual GETPEEREID(3)
NAME
getpeereid -- get the effective credentials of a UNIX-domain peer
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
int
getpeereid(int s, uid_t *euid, gid_t *egid);
DESCRIPTION
The getpeereid() function returns the effective user and group IDs of the peer connected to a UNIX-domain socket. The argument s must be a
UNIX-domain socket (unix(4)) of type SOCK_STREAM on which either connect(2) has been called, or one returned from accept(2) after bind(2) and
listen(2) have been called. If non-NULL, the effective used ID is placed in euid, and the effective group ID in egid.
The credentials returned to the accept(2) caller are those of its peer at the time it called connect(2); the credentials returned to the
connect(2) caller are those of its peer at the time it called bind(2). This mechanism is reliable; there is no way for either side to influ-
ence the credentials returned to its peer except by calling the appropriate system call (i.e., either connect(2) or bind(2)) under different
effective credentials.
One common use of this routine is for a UNIX-domain server to verify the credentials of its client. Likewise, the client can verify the cre-
dentials of the server.
IMPLEMENTATION NOTES
On NetBSD, getpeereid() is implemented in terms of the LOCAL_PEEREID unix(4) socket option.
RETURN VALUES
The getpeereid() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indi-
cate the error.
ERRORS
The getpeereid() function fails if:
[EBADF] The argument s is not a valid descriptor.
[ENOTSOCK] The argument s is a file, not a socket.
[ENOTCONN] The argument s does not refer to a socket on which connect(2) have been called nor one returned from listen(2).
[EINVAL] The argument s does not refer to a socket of type SOCK_STREAM, or the kernel returned invalid data.
SEE ALSO
connect(2), getpeername(2), getsockname(2), getsockopt(2), listen(2), unix(4)
HISTORY
The getpeereid() function appeared in NetBSD 5.0.
BSD
August 8, 2007 BSD