10 More Discussions You Might Find Interesting
1. Solaris
Hello,
I have a Solaris-10 non global zone. I am using MobaXterm. I login on box with root and then "su - caddrd" and then "/usr/local/bin/sudo -u cadwebppc /cad/envs/qa-cm/cadwccDomain/ucm/cs/bin/UserAdmin". This is supposed to open a GUI console, but it is failing and I am not able to figure... (2 Replies)
Discussion started by: solaris_1977
2 Replies
2. AIX
Currently ,we use Exceed,X-Win32,winaxe 7.7,Reflection X software for doing evaluation.
1.Chinese word problem
When we use "more filename" to check the file in xterm command console mode from our client Window XP to IBM AIX server.it can show the chinese word,but when we change to grahpic mode... (1 Reply)
Discussion started by: whbun123
1 Replies
3. UNIX for Dummies Questions & Answers
Hello. I installed a Debian box, and its installed remotely. I need to boot up iceweasel from there to do a quick test.
I log on using:
ssh root@<IP> -X
I have modified the /etc/ssh/sshd_config file, and added the X11Forwarding yes flag
And yet I still get:
Error: cannot open... (10 Replies)
Discussion started by: dynelight
10 Replies
4. Solaris
Hi everyone,
I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies
5. UNIX Desktop Questions & Answers
I have two Solaris 10 systems, A and B, both of which share home directories via NFS (served from a 3rd, Linux, machine). User names, uids, and home directories are identical when the same user has accounts on both Solaris 10 machines.
When I run ssh -X user@A from my home machine, I can easily... (0 Replies)
Discussion started by: WolfyPDX
0 Replies
6. UNIX for Dummies Questions & Answers
Hey guys,
I'm on a Solaris 9 boxes and I setup Putty to do X11 forwarding I can get my Xmanager to connect and load Xwindows screens fine. But, sometimes if I lose my putty connection or the app im running crashes X freaks out and deletes my display, setting it to nothing. When I add my display... (2 Replies)
Discussion started by: kingdbag
2 Replies
7. Red Hat
X11 forwarding problem between 2 RHEL4 machines with SSH
Already configured the following on both machines under /etc/ssh
Under sshd_config:
UsePAM no
AllowTcpForwarding yes
Under ssh_config:
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
-----------------------------
Using... (1 Reply)
Discussion started by: panggou
1 Replies
8. Debian
I have 2 Debian boxes.
In my ssh.com client and my putty client, I have X11 fowarding turned
on for both boxes.
When I connect one, I can xterm with no problem back to my pc.
On the other, I keep getting:
xterm Xt error: Can't open display:
xterm: DISPLAY is not set
On both... (3 Replies)
Discussion started by: natter
3 Replies
9. UNIX for Advanced & Expert Users
At school, on an HP-UX or B.11.11 U 9000/785 system, my X11 root window is always set to 8-bit color, but all the child windows are 24-bit. The problem with this, is any background/wallpaper looks extremely ugly with the 8-bit color. Is there any way to make X starts with 24-bit color root window?... (0 Replies)
Discussion started by: ljfong
0 Replies
10. UNIX Desktop Questions & Answers
Has anyone had any luck in using a newer Geforce card in BSD? I dont really care about 3d accel as of now, just trying to get X up with a standard 1024x768 display would be nice :rolleyes:
Never mind, just read on web that nvidea is planning on making drivers for fbsd now that the latest... (2 Replies)
Discussion started by: bsdjunkie
2 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) 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