Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
55 views
How can I allow a single member of group as sudoer
I am looking for a solution to a use case where a group is granted sudoer privileges. However, only one specific user or member within that group should have sudoer permission privileges, while the remaining members of the group should not have permission to access sudoer privileges. In summary: A g...
I am looking for a solution to a use case where a group is granted sudoer privileges. However, only one specific user or member within that group should have sudoer permission privileges, while the remaining members of the group should not have permission to access sudoer privileges. In summary: A group has been granted sudoer privileges. Only one member of the group should have sudoer privileges. The rest of the group's members should not have sudoer privileges.
govind Lalit (1 rep)
Oct 11, 2023, 08:04 PM • Last activity: Oct 11, 2023, 08:16 PM
3 votes
2 answers
3318 views
How to enable using commands on remote host using ssh without password?
i set up to use ssh between two hosts without password. ssh log in is working fine but execute commands failed with the below erro: **isn't allowed to be executed with process or redirect controls.** Simple command used: ssh remo-tehost " echo \"\test\" >> \"/home/alarmstest.log\" " Running trace i...
i set up to use ssh between two hosts without password. ssh log in is working fine but execute commands failed with the below erro: **isn't allowed to be executed with process or redirect controls.** Simple command used: ssh remo-tehost " echo \"\test\" >> \"/home/alarmstest.log\" " Running trace i got: debug1: Sending command: echo "test" >> "/home/alarmstest.log" debug2: channel 0: request exec confirm 1 debug2: fd 3 setting TCP_NODELAY debug2: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768 debug2: channel 0: rcvd adjust 2097152 debug2: channel_input_status_confirm: type 99 id 0 debug2: exec request accepted on channel 0 debug2: channel 0: rcvd ext data 117 there is sudosh on the remote server for the user used user:x:500:500::/home/user:/usr/local/bin/sudosh authorized_keys from the remote server + key inside -rw------- 1 user user 9092 Dec 13 07:53 authorized_keys
Charles nakhel (185 rep)
Dec 16, 2014, 09:25 AM • Last activity: Sep 1, 2017, 02:15 AM
0 votes
1 answers
111 views
Run several ssh in a row (one within another)
I would like to do the following in a one-liner (so I can alias it in my `.bashrc`) 0. before doing anything I am user1 on server0 1. ssh to server1 2. impersonate user2 (**THIS HAS TO BE DONE BY `sudo -u user2 sudosh`**) 3. ssh from server1 to server2 4. cd dirOnServer2 so my prompt would be after...
I would like to do the following in a one-liner (so I can alias it in my .bashrc) 0. before doing anything I am user1 on server0 1. ssh to server1 2. impersonate user2 (**THIS HAS TO BE DONE BY sudo -u user2 sudosh**) 3. ssh from server1 to server2 4. cd dirOnServer2 so my prompt would be after user@server0:/dirOnServer0) superSshCommand user2@server2:/dirOnServer2) Is this possible ?
statquant (371 rep)
Jan 27, 2017, 02:23 PM • Last activity: Aug 22, 2017, 01:25 PM
Showing page 1 of 3 total questions