Sponsored Content
Full Discussion: Using Redhat VIA SSH client.
Operating Systems Linux Red Hat Using Redhat VIA SSH client. Post 302281341 by blind melon on Wednesday 28th of January 2009 04:57:31 PM
Old 01-28-2009
Using Redhat VIA SSH client.

Alright, I'm not really sure how to say this, since my professor didn't really understand what I was saying, but we have a project in my operating systems class, and what we have to do is create a linux IPC, so I'm using the msgget(), msgsnd(), msgrcv() functions. Now, I run a Windows machine, so I connect to our Linux cluster VIA vpn + ssh client, and I do have my permissions set to read/write/execute my files. So when I go to execute my file, my msqid (the ID that is returned from msgget()) is -1, but, it has previously worked... I was able to send/receive messages, but when I exited the SSH and relogged on, I all of a sudden can't do it.

So (this is where it gets really confusing) what I've noticed is this... when I type ipcs (I'm assuming this gives you the users that are currently using the IPC channels?), it shows who else is logged on... now I've noticed that my program will run correctly if the only other person logged on has perms 666, but when I log on and get the msqid as -1, I've noticed in ipcs that there is someone that has perms 660... and I've tested this numerous times... sometimes I connect this guy with perms 660 isn't there, and I can run the program fine, but whenever he's there, I cannot get the program to run.

What I want to know is, do I get the -1 as the msqid because this guy's there, or is it coincidence? I mean, it doesn't make sense to me at all, and like I said, I couldn't get through to my professor as to why I couldn't get it working, but if anyone needs more information, like if you want to see what I have set as what, then ask. Also, these people logged on are not using my key that I send in msgget().
 

10 More Discussions You Might Find Interesting

1. Cybersecurity

What's the difference between an SSH Client and an SSH Server?

Eh... yeah. What the title says. :D (1 Reply)
Discussion started by: PSC
1 Replies

2. Red Hat

How to configure a Redhat 9.0 as NIS+ client

I would like to know how to configure a Redhat 9.0 as NIS+ client. I have seen the post of larry, but it is not enough information for me to do the configuration. Could anyone tell me how to do it? Please help! Thank you! (3 Replies)
Discussion started by: alexhon
3 Replies

3. UNIX for Dummies Questions & Answers

SSH client

How can I use ssh client with proxy support? If possible: with proxy chain support. :) (2 Replies)
Discussion started by: zylwyz
2 Replies

4. HP-UX

SSH client

As user root and with some users I can use ssh to connect to remote hosts. But with a specific user I can't use ssh client because: $ ssh OpenSSL version mismatch. Built against 90807f, you have 90703f Is it a $PATH problem or what? HP-UX version is 11.11. (2 Replies)
Discussion started by: untamed
2 Replies

5. Red Hat

Redhat nfs client hangs after 5 minutes

New at NFS. 3 machines at hand 1 RedHat nfs Client which is connected to a spectrometer (chemistry Instrument): # uname -a Linux BH083108 2.6.9-78.0.17.ELsmp #1 SMP Thu Mar 5 04:52:17 EST 2009 i686 i686 i386 GNU/Linux # cat /proc/version Linux version 2.6.9-78.0.17.ELsmp... (9 Replies)
Discussion started by: hpg4815
9 Replies

6. Filesystems, Disks and Memory

NFSv4 on Netapp and Redhat 5.3 as Client

Hi Folks! I'm new in using NFSv4 and do have a little trouble. I had a partition working with NFSv3, at the beginning i couldn't see on the client the German umlauts letters {ö,ä,ü} a manipulation of the LANG environment variable helped and the filenames with this letters were shown normally... (2 Replies)
Discussion started by: oku
2 Replies

7. UNIX for Dummies Questions & Answers

SSH using the shell on the client side -- possible?

I have identical scripts on two machines: one a laptop running Ubuntu 9.04, and the other a Windows XP desktop running Cygwin. The files I'd like to process are on the Windows machine. Running the script in Cygwin engages eight calls to an external executable and spins off who knows how many forks... (1 Reply)
Discussion started by: SilversleevesX
1 Replies

8. Shell Programming and Scripting

poderosa ssh client on hp-unix

I have tools -> options -> terminal -> buffer -> 999999 but when I scroll up, I often lose what I scroll up to. This always happens when I am connected to oracle in sqlplus. This has never happened to me with poderosa in Sun Solaris or Linux and I have never had to set any variables or... (1 Reply)
Discussion started by: guessingo
1 Replies

9. Solaris

SSH Client

Hi Gurus, I need an SSH client to connect to a Solaris server from windows and run a few scripts. I am able to put/pull files using "psftp" using below command: psftp -l <username> -pw <password> <hostname> -b <batchfile> However i am unable to find an equivalent for ssh. I tried... (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

10. Linux

What SSH Client do you Use?

Most of you probably use PuTTy, but I was wondering if there were any other good alternatives. So, what SSH client do you use? (2 Replies)
Discussion started by: erich76
2 Replies
pam_console(8)						   System Administrator's Manual					    pam_console(8)

NAME
pam_console - control permissions for users at the system console SYNOPSIS
session optional /lib/security/pam_console.so auth required /lib/security/pam_console.so DESCRIPTION
pam_console.so is designed to give users at the physical console (virtual terminals and local xdm-managed X sessions by default, but that is configurable) capabilities that they would not otherwise have, and to take those capabilities away when the are no longer logged in at the console. It provides two main kinds of capabilities: file permissions and authentication. When a user logs in at the console and no other user is currently logged in at the console, pam_console.so will change permissions and own- ership of files as described in the file /etc/security/console.perms. That user may then log in on other terminals that are considered part of the console, and as long as the user is still logged in at any one of those terminals, that user will own those devices. When the user logs out of the last terminal, the console may be taken by the next user to log in. Other users who have logged in at the console during the time that the first user was logged in will not be given ownership of the devices unless they log in on one of the terminals; having done so on any one terminal, the next user will own those devices until he or she has logged out of every terminal that is part of the physical console. Then the race can start for the next user. In practice, this is not a problem; the physical console is not gener- ally in use by many people at the same time, and pam_console.so just tries to do the right thing in weird cases. ARGUMENTS
debug turns on debugging allow_nonroot_tty gain console locks and change permissions even if the TTY's owner is not root. permsfile=filename tells pam_console.so to get its permissions database from a different file than /etc/security/console.perms fstab=filename tells pam_console.so to read the table of configured filesystems from a file other than /etc/fstab when scanning permsfile. This file is used to map directories to device names. FILES
/var/run/console.lock /var/run/console/ /etc/security/console.apps /etc/security/console.perms SEE ALSO
console.perms(5) console.apps(5) /usr/doc/pam*/html/index.html pam_console_apply(8) /usr/doc/pam*/html/index.html BUGS
Let's hope not, but if you find any, please report them via the "Bug Track" link at http://bugzilla.redhat.com/bugzilla/ AUTHOR
Michael K. Johnson <johnsonm@redhat.com> Red Hat 2000/7/11 pam_console(8)
All times are GMT -4. The time now is 11:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy