Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

Create a user for HDP Sandbox

New Contributor

Hi,

I want to create a user "abc" for HDP sandbox and give it permission to read/write to HDFS.

I created using RANGER, but i can't ssh/login with that user or can't sudo to that user.

Can anyone help me out in configuring it.

Thanks,

Gunesh P

1 ACCEPTED SOLUTION

Super Collaborator

@Gunesh P , you have to create a user in OS, login to Sandbox terminal as root and type

useradd abc

passwd abc

This user will not have sudo access, in order to give it, type visudo and add this line under root:

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

abc ALL=(ALL) ALL

Save the file and after this, you can do SSH and later on, you can give this user read/write access through HDFS policies of Ranger.

View solution in original post

1 REPLY 1

Super Collaborator

@Gunesh P , you have to create a user in OS, login to Sandbox terminal as root and type

useradd abc

passwd abc

This user will not have sudo access, in order to give it, type visudo and add this line under root:

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

abc ALL=(ALL) ALL

Save the file and after this, you can do SSH and later on, you can give this user read/write access through HDFS policies of Ranger.