Search Results

Search: Posts Made By: julesdiane
11,687
Posted By julesdiane
Can I export the users environment using sudo?
I want the user to be able to commands as another user.. but when they do that.. I need them to have the environment variables of the other user. is this possible with sudo?

sudo -H -u user env
...
2,507
Posted By julesdiane
Oh. Wow. A lot easier than I was making it all...
Oh. Wow. A lot easier than I was making it all out to be! Thanks!
2,507
Posted By julesdiane
[host] [/] [root-128]:getent passwd | grep...
[host]
[/]
[root-128]:getent passwd | grep user | awk -F":" '{print ($3)}'
4022

[host]
[/]
[root-129]:getent passwd | grep user | awk -F":" '{print $3}'
4022


Well, good to know that...
2,507
Posted By julesdiane
too many quotes in command, generating error
I am trying to go through a file with hostnames and access those hosts remotely an excute the following to get the uid of user on each of the boxes.. but i have so many quotes.. its not working.. I...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy