09-09-2006
am surprised ....
i had never used this portal as
www.unix.com
and only as unix.com...
but Neo, your word DONE surprises me !!!
10 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
As I was just pondering to myself I relized that emergency's do happen and there are times when people need an anwser to their problem ASAP. So what i was thinking why not add a live chat to this board this way people could chat amongst each other in real time. I know this could be done with a... (1 Reply)
Discussion started by: tovsky
1 Replies
2. Programming
I am a student and I love the computer very much ,
especially in programming. However I know little about
programming .
I don't know which I should learn (JAVA and C++).
Would you like to give me a suggestion ?
Thanks! (6 Replies)
Discussion started by: camel
6 Replies
3. UNIX for Dummies Questions & Answers
Can anyone tell me a good alternative to Windows? OS that can connect to a Windows domain and use for everyday (can use with Oracle). Easy to learn. (4 Replies)
Discussion started by: genesisX
4 Replies
4. UNIX for Advanced & Expert Users
Hi,
I am having experience on Perl and C# and worked as Windows Sytem Admin and now iam planning to become a UNIX developer.
I am having knowledge on basic UNIX..
can any one suggest me any good material for c/c++ UNIX programming.
on what all things a UNIX Programmer needs to... (1 Reply)
Discussion started by: chandrareddy1
1 Replies
5. Shell Programming and Scripting
Hi,
I have the requirement to run multiple SQLs against database running on a server and save the output of SQL executed to a log.
I thought about writing a Function in sh that will take file name as argument and function should return the SQL output to calling program. E.g.
function Run_SQL... (0 Replies)
Discussion started by: bhupinder08
0 Replies
6. Shell Programming and Scripting
Hi folks,
Any good suggestion concerning this BASH search script?
#Any good suggestions for this simple search shell?
#================================
#!/bin/bash
clear
echo "Enter File Name for search"
echo
read filename
locate $filename
if ;
then
echo No such file... (1 Reply)
Discussion started by: leo_ultra_leo
1 Replies
7. Shell Programming and Scripting
Assume that 100 file's of type .txt are saved in directory
in which,
40 .txt files having ID 225 in column x
10 .txt files having ID 220 in column x
30 .txt files having ID 115 in column x
and remaining 20 .txt file's having UNIQUE ID say 226,227,228,229,230....first I want to read only files... (8 Replies)
Discussion started by: Akshay Hegde
8 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
Request you to suggest any other book as of year 2013. The below thread is of year 2000 and I have not found the books mentioned in the link below.
Which Unix Certification is the most needed these days?
Or please share any updated thread is there on this.
Thanks and regards,... (7 Replies)
Discussion started by: saps19
7 Replies
9. Post Here to Contact Site Administrators and Moderators
Hello Admin/moderators Team,
Greetings !!
This is regarding a suggestion which may help our forum if this is possible.
Thanks,
R. Singh
"GOD helps those who help themselves" (2 Replies)
Discussion started by: RavinderSingh13
2 Replies
10. Cybersecurity
Hello,
We have mid level infrastructure of all on-premises servers. All windows servers are getting authenticated by Microsoft Active Directory Services, half Unix (Solaris+Linux) servers are getting authentication by NIS and other half by LDAP.
We have plans to migrate from NIS to LDAP, so... (2 Replies)
Discussion started by: solaris_1977
2 Replies
LEARN ABOUT FREEBSD
getpeereid
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) or listen(2) have been called. The effective used ID is placed
in euid, and the effective group ID in egid.
The credentials returned to the listen(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 listen(2). This mechanism is reliable; there is no way for either side to
influence the credentials returned to its peer except by calling the appropriate system call (i.e., either connect(2) or listen(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 FreeBSD, getpeereid() is implemented in terms of the LOCAL_PEERCRED 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) or listen(2) have been called.
[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 FreeBSD 4.6.
BSD
July 15, 2001 BSD