Sponsored Content
Full Discussion: ONLY SU Sudo access
Top Forums Shell Programming and Scripting ONLY SU Sudo access Post 302540879 by ajaincv on Friday 22nd of July 2011 12:21:33 AM
Old 07-22-2011
ONLY SU Sudo access

Hello All,

I want to create a script that will do ONLY su to any user on the server with hpadmin login using sudo. Can anyone let me know how can it do it.

Regards

Ankit
 

10 More Discussions You Might Find Interesting

1. Solaris

secure access using sudo

I just need to know what should be done on a login user so that no one can access it except through sudo i.e. telnet server login: user NO ACCESS telnet server login: mylogin sudo - user <any command> ACCESS GRANTED thanks (0 Replies)
Discussion started by: melanie_pfefer
0 Replies

2. Linux

sudo access verification

Hi All, I got lots of request with sudo, a manager request, verbal command, do this and do that. The problem with this kind of request is when I added that script and that. It will not be perfect, it's because I can't verify the userid sudo access, I can't reset their password as well, I... (2 Replies)
Discussion started by: itik
2 Replies

3. AIX

sudo user access

I have installed sudo on AIX 6100-04 and want to know how do I set it up for a user to be able to run only some commands? I want to give the user the rights to only cd to certain directories and run the ls command to name a few? Are there any issues with running sudo when the user is forced to... (2 Replies)
Discussion started by: daveisme
2 Replies

4. UNIX for Dummies Questions & Answers

sudo/root access

I'm actually working with a Ubuntu-System here and have a question about executing a command with 'sudo'. I tried and got a error message like "not allowed". After this I logged in with 'sudo -s' and typed the command without 'sudo'. This worked well. Can please somebody explain me this... (0 Replies)
Discussion started by: daWonderer
0 Replies

5. Ubuntu

Restrict SUDO Access

Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Hi Folks, Please help me. I am bit struck here. Here is the OS info. Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux I have a... (17 Replies)
Discussion started by: explorer007
17 Replies

6. UNIX for Advanced & Expert Users

Help needed in sudo access

I want to give root access to a user called denielr on server - tsprd01, but do not want to share root password. I have sudoers configured already. He should have all access equal to root. I made this entry in /etc/sudoers, but it is not working denielr tsprd01 =(root) NOPASSWD: ALL I tried to... (2 Replies)
Discussion started by: solaris_1977
2 Replies

7. Solaris

Sudo access in Solaris

Install the sudo pkg SFWsudo.tar bash#tar -xvf SFWsudo.tar bash#pkgadd -d . SFWsudo path may be /opt/sfw/bin Make entry the user name in sudoer file path of the sudoer file /opt/sfw/etc/sudoers check with the below command as a user (not as a root user) user1$... (1 Reply)
Discussion started by: Narendiran
1 Replies

8. Red Hat

Sudo access issue

Hi, I have given access to user mwadmin in shudders file as : mwadmin ALL:NOPASSWD:/www/* /usr/* /opt/* However, not able to execute below command: sudo mkdir -p /usr/test password for mwadmin: Sorry, user mwadmin is not allowed to execute '/bin/mkdir -p /usr/test' as root. ... (4 Replies)
Discussion started by: saurau
4 Replies

9. UNIX for Dummies Questions & Answers

Inheriting SUDO access?

I had a question on users inheriting SUDO capabilities of another account. Let's say that there are three users A, B, and C. A has access to Sudo into B. B has access to Sudo into C. Does this give A access to sudo into B and then sudo into C. A -> B B -> C A -> B -> C ? Another example. My... (2 Replies)
Discussion started by: sbcopty
2 Replies

10. Shell Programming and Scripting

Using plink with sudo access

I have similar issue as mentioned in 167174-how-run-script-using-batch-file.html It works good, but the control is not coming back to source i tried adding exit to remote script. Thanks, Suresh (0 Replies)
Discussion started by: snsuresh
0 Replies
dceping(8)																dceping(8)

NAME
dceping - test the ability to contact DCE services from a local DCE client. SYNOPSIS
dceping [-n number] [-s time] [-v] [-C] [service_name ...] required to specify the literal strings, NAMESPACE or STRING_BINDING (see nond- cesvc(4)). OPTIONS
-n number Specify the number of pinging cycles. Each service is tested once per cycle. The default is one pinging cycle. Specifying -n 0 makes pinging continuous. -s time Specify time, in seconds, to wait between pinging cycles. You must specify more than one pinging cycle with the -n option in order to use -s. -v Run in verbose mode. -C Ping only core DCE services. This option is ineffective if a service_name is specified on the command line. DESCRIPTION
dceping verifies that a local DCE client can communicate with DCE and other services. It uses the RPC management interface to determine if the DCE service is listening. The core DCE services that dceping checks include secd, cdsd, gdad, rpcd, cdsadv, dtsd, and sec_clientd. You can ping other DCE and non-DCE services by naming them in the file, /opt/dcelocal/hpadmin/etc/nondcesvc. If you want to determine at run time what services you want dceping to ping, you may do so using the same file. See the manpage, nondcesvc(4), for more information. You may specify the services to ping on the command line separated by blanks. In this case, dceping does not ping any DCE core services or the services listed in /opt/dcelocal/hpadmin/etc/nondcesvc. The service_name specified could be either a name in the DCE Cell Directory Service Namespace or an RPC string binding. It is not AUTHOR
dceping was developed by HP. FILES
/opt/dcelocal/hpadmin/etc/nondcesvc /opt/dcelocal/hpadmin/etc/wellknownif SEE ALSO
nondcesvc(4), wellknownif(4) HP DCE
dceping(8)
All times are GMT -4. The time now is 12:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy