Skip to main content

How to give access to user on linux server?

 


How to create the local account on the linux server?


create the local account only in case when server is not domain joined.


#realm list  :this command will show you if the server has been domain joined or not.


#useradd -g <groupname>  -s/bin/bash   -c "comment for user"  -m  -d   /home/<username> <username>


#passwd  <username>


#chage -d  0  <username> : it will allow user to change the password after first login. 

#chage -1 <username> 

#id <username>


†***************************************†



How to give the access to user on the domain joined server ?


#id <username>


#realm list :check if the server has been added to domain or not.


#add the user to the WH group in Active directory.


#id <username>: check if the user has become part of WH group or not.


#cat/etc/group: check which group is there allready created for the admins.(ex admins).


#usermod  -aG  <groupname>  <username>


#cat  /etc/group: check if the user has become the part of the group that is created for admins




Comments

Popular posts from this blog

Post build configurations on Redhat VM

  ************************************* Post build configuration on Linux VM: ************************************* Set the hostname. hostnamectl set-hostname <Servername> ***************************************** Network configuration : Make sure VM gets the ipv4 ip address either from DHCP or assign the static ip address to it.   Question : How to assign the static ip address to the linux machine using the nmcli ?  Answer: fire the below commands: nmcli device nmcli connection modify enpos3 ipv4.addresses 10.253.1.34/24 nmcli connection modify enpos3 ipv4.gateway 10.253.1.1 nmcli connection modify enpos3 ipv4.method manual nmcli connection modify enpos3 ipv4.dns 8.8.8.8 nmli connection down enpos3 nmcli connection up enpos3 ip address show enpos3 nmcli connection show ************************†****************** Register to RHΝ. Register to redhat network if the linux vm is redhat vm. subscription-manager register --org <org>  --activationkey <activat...

AWS cloud practitioner notes

 AWS Certified cloud practitioner: What is cloud computing? cloud computing is the on demand delivery of the compute power, database storage, applications and other IT resources through a cloud services platform with pay-as-you-go pricing. you can provision exactly the right type and size of the computing resources you need. you can access many resources as you need almost instantly like servers, storage,databases and application services as well. Amazon web services owns and maintains the network connected hardware required for these application services, while you provision and use what you need via a web application. ***************************************** Deployment models of Cloud: Private Cloud: Cloud service used by a single organisation, not exposed to the public. complete control. security of the sensitive applications meeting specific business needs. ********************** Public Cloud: Cloud resources owned and operated by the third party. cloud service provider delive...