Sponsored Content
Full Discussion: Help with SSH
Top Forums Shell Programming and Scripting Help with SSH Post 302742431 by prithvirao17 on Tuesday 11th of December 2012 04:24:49 AM
Old 12-11-2012
I think ACL can come to your help in this case.
 

9 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. Shell Programming and Scripting

could not send commands SSH session with Net::SSH::Expect

I am using Net::SSH::Expect to connect to the device(iLO) with SSH. After the $ssh->login() I'm able to view the prompt, but not able to send any coommands. With the putty I can connect to the device and execute the commands without any issues. Here is the sample script my $ssh =... (0 Replies)
Discussion started by: hansini
0 Replies

3. Shell Programming and Scripting

Using ssh to add register key on ssh server

Hi, I want to use ssh to add a register key on remote ssh server. Since there are space characters in my register key string, it always failed. If there is no space characters in the string, it worked fine. The following is what I have tried. It seems that "ssh" command doesn't care about double... (9 Replies)
Discussion started by: leaftree
9 Replies

4. UNIX for Dummies Questions & Answers

SSH SSH encountered 1 errors during the transfer

This issue was resolved due to using the correct user transferring the file over to the desktop. (1 Reply)
Discussion started by: Computergal2104
1 Replies

5. Shell Programming and Scripting

Ssh = ssh expect and keep everything not change include parameter postion

I have write a script which contains ssh -p 12345 dcplatform@10.125.42.50 ssh 127.0.0.1 -p 5555 "$CMD" ssh root@$GUEST_IP "$CMD" before I use public key, it works well, now I want to change to "expect", BUT I don't want to change above code and "parameter position" I can post a... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

6. UNIX for Dummies Questions & Answers

SSH tunnel working for ssh but not for sshfs

I'm trying to setup a link between my home pc (work-machine) and a server at work (tar-machine) that is behind a gateway (hop-machine) and not directly accessible. my actions: work-machine$ ssh -L 1234:tar-machine:22 hop-machine work-machine$ ssh -p 1234 user@127.0.0.1 - shh access on... (1 Reply)
Discussion started by: Vathau
1 Replies

7. Shell Programming and Scripting

Check if file exists via ssh in ssh (nested)

I'm using redhat and have an odd issue with a nested ssh call. ssh -i ~/.ssh/transfer-key -q transfer@fserver1 ] && ssh -i ~/.ssh/transfer-key transfer@fserver1 "ssh -i ~/.ssh/sftp-key sftpin@10.0.0.1 ]" && ssh -i ~/.ssh/transfer-key transfer@fserver1 "scp -i ~/.ssh/sftp-key /home/S/outbox/*... (2 Replies)
Discussion started by: say170
2 Replies

8. UNIX for Beginners Questions & Answers

Ssh script to validate ssh connection to multiple serves with status

Hi, I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not... I have .sh script like below and i have servers.txt contains all the list of servers #/bin/bash for host in $(cat... (3 Replies)
Discussion started by: sreeram4
3 Replies

9. Shell Programming and Scripting

Find active SSH servers w/ ssh keys on LAN

Hi, I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step: #!/bin/bash # LAN SSH KEYS DISCOVERY SCRIPT </etc/passwd \ grep /bin/bash | cut -d: -f6 | sudo xargs -i -- sh -c ' && cat... (11 Replies)
Discussion started by: syrius
11 Replies
aclcheck(3SEC)					       File Access Control Library Functions					    aclcheck(3SEC)

NAME
aclcheck - check the validity of an ACL SYNOPSIS
cc [ flag... ] file... -lsec [ library... ] #include <sys/acl.h> int aclcheck(aclent_t *aclbufp, int nentries, int *which); DESCRIPTION
The aclcheck() function checks the validity of an ACL pointed to by aclbufp. The nentries argument is the number of entries contained in the buffer. The which parameter returns the index of the first entry that is invalid. The function verifies that an ACL pointed to by aclbufp is valid according to the following rules: o There must be exactly one GROUP_OBJ ACL entry. o There must be exactly one USER_OBJ ACL entry. o There must be exactly one OTHER_OBJ ACL entry. o If there are any GROUP ACL entries, then the group ID in each group ACL entry must be unique. o If there are any USER ACL entries, then the user ID in each user ACL entry must be unique. o If there are any GROUP or USER ACL entries, then there must be exactly one CLASS_OBJ (ACL mask) entry. o If there are any default ACL entries, then the following apply: o There must be exactly one default GROUP_OBJ ACL entry. o There must be exactly one default OTHER_OBJ ACL entry. o There must be exactly one default USER_OBJ ACL entry. o If there are any DEF_GROUP entries, then the group ID in each DEF_GROUP ACL entry must be unique. o If there are any DEF_USER entries, then the user ID in each DEF_USER ACL entry must be unique. o If there are any DEF_GROUP or DEF_USER entries, then there must be exactly one DEF_CLASS_OBJ (default ACL mask) entry. o If any of the above rules are violated, then the function fails with errno set to EINVAL. RETURN VALUES
If the ACL is valid, alcheck() will return 0. Otherwise errno is set to EINVAL and return code is set to one of the following: GRP_ERROR There is more than one GROUP_OBJ or DEF_GROUP_OBJ ACL entry. USER_ERROR There is more than one USER_OBJ or DEF_USER_OBJ ACL entry. CLASS_ERROR There is more than one CLASS_OBJ (ACL mask) or DEF_CLASS_OBJ (default ACL mask) entry. OTHER_ERROR There is more than one OTHER_OBJ or DEF_OTHER_OBJ ACL entry. DUPLICATE_ERROR Duplicate entries of USER, GROUP, DEF_USER, or DEF_GROUP. ENTRY_ERROR The entry type is invalid. MISS_ERROR Missing an entry. The which parameter returns -1 in this case. MEM_ERROR The system cannot allocate any memory. The which parameter returns -1 in this case. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
acl(2), aclsort(3SEC), attributes(5) SunOS 5.10 10 Dec 2001 aclcheck(3SEC)
All times are GMT -4. The time now is 08:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy