I’m a newbee to Linux.
I have created multiple accounts on my system and I have (tried) to create 1 additional user with admin rights. When I try to log on with that user, using the Terminal I get this
[gerit@pc-buro-3 ~]$ su gla
Password:
bash: /home/gla/.bashrc: Permission denied
I have create other users as well and I have no problems to login with these users.
The process I used to create the ‘gla’ user was as follows:
I used the xfce GUI “User Account” to create the user gla
Not being able to specify the Account Type , I added the user gla to the group wheel.
I forgot how I did this but I remember vaguely, I updated a config file somewhere to
add gla to the group wheel. (I was not confident in using the -G, -g or -a options on the usermod command. Using the command groups I can see…
[gla@pc-buro-3 gerit]$ groups gla
wheel audio lp optical video sys network scanner power gla
That’s because you are using su instead of su - or su -l. The correct commands would have been either…
su - gla
… or …
su -l gla
The rationale is that if you use su “as is”, then you will still be operating from within the user environment of the invoking user. If on the other hand you do it as I showed you here-above, then you are effectively logging into that user and their environment.
I saw that the dir /home/gla was owned by another user “glb”
Using command chown -hR /home/gla I managed to get the logon to work.
Thx for your support, folks!