Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Create a user for HDP Sandbox

avatar
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

avatar
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

avatar
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.