I need to run a command that only a role user and root can run, I need to run that command remotely by script but the roles ask for a password.
Ex. from serverA with userA to serverB with userB:
userA can ssh serverB using userB without askink for a password.
user1 es a user tha can do su to roleuser
roleuser is a role that can execute /usr/sbin/savegroup
the matter is that when I try to do tha remotely it says : su: Sorry
how can i achieve my goals
Thanks for any help
Last edited by vbe; 03-04-2015 at 09:30 AM..
Reason: code tags
In any given operating system, generally how much of AI software is involved? Is it related to user-friendliness of OS?
What is the future of strong AI? (3 Replies)
This may not be the right forum to put up a question like the one I'm about to ask. I am hoping that I would get very fruitful responses.
i) I have been learning UNIX for sometime now, but my question is realistically what do I need to be able to be able to apply for UNIX jobs.
What sort of... (6 Replies)
Hello, I want to know why initrd need swap for work. In the shell of mkinitrd, it look for the swap partation for "swsuspdev", then write a sentence "resume /dev/sdXX" in the file init from initrd.gz, and the /dev/sdXX is the swap partation.
Why initrd need swap when it boot a system? what is... (4 Replies)
Hi ,
I am planning for the interview . I am having one question here , I worked on unix and shellscripting for 2 years
Done-
Ø Coding and testing of Server Monitoring ShellScripts
Ø Deployment on UNIX production environment
I have written so many shellscripts for monitoring... (5 Replies)
Hello Guys,
I am studying RBAC. So I create a role called sysadm and gave it the "shutdown" profile.
Now when I switch to that role, and execute the shutdown command
$ shutdown -y -g0 -i5
The system responds with :
shutdown: not found
Can anyone help me with this please?... (1 Reply)
Hello,
We are planning to setup a Role based access and security to our Linux servers. We can use mostly use sudo for providing the limited access to service and files.
My query is that how can we manage that members can edit/access only specific files (it would be 1 or multiple files or... (3 Replies)