In Linux, you can deploy or extend
PowerFlex with a non-root user. You must configure a non-root sudo user in non-interactive mode.
About this task
The following procedure details one method for configuring a non-root non-interactive sudo user. Perform the commands from the operating system console of where you want the
PowerFlex Gateway to deploy
PowerFlex.
Steps
Create a user group named "admin".
groupadd admin
Create a user named "non_root" and add it to the admin group.
useradd -G admin non_root
Change the password of the non_root user.
passwd non_root
When prompted, enter the new password and then confirm it by entering it again.
Open the sudoers
/etc/sudoers file for editing.
vi /etc/sudoers
Search the sudoers file for "## Same thing without a password".
:s/## Same thing without a password
In the line below the search result, add the text
%admin ALL=(ALL) NOPASSWD: ALL to the file.
Search the sudoers file for "Defaults requiretty", and replace it with
Defaults ! requiretty.
Exit the vi editor by typing the following command to exit:
:wq!
Create a hidden directory in the non_root user's home directory to store the SSH configuration.
mkdir /home/non_root/.ssh
Copy the SSH configuration from the root user to the non_root user's directory.
cp -rf /root/.ssh/* /home/non_root/.ssh/
Data is not available for the Topic
Please provide ratings (1-5 stars).
Please provide ratings (1-5 stars).
Please provide ratings (1-5 stars).
Please select whether the article was helpful or not.
Comments cannot contain these special characters: <>()\