LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-17-2024, 10:57 PM   #1
slmn
LQ Newbie
 
Registered: Mar 2024
Posts: 1

Rep: Reputation: 0
Can't login in centos7, bash_profile : Permission denied


someone can help me, I can't log in on Centos 7, where it says: -bash: /home/my_user/.bash_profile: permission denied. this incident happened after i configured samba on my linux.

- rpm -Va util-linux pam\
- awk -F: '{ print $1}' /etc/passwd
- smbpasswd -a username

this command before i got the login error
 
Old 03-18-2024, 01:28 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,901

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
Probably you can log in as root, and remove/rename that file.
 
1 members found this post helpful.
Old 03-18-2024, 03:19 AM   #3
lvm_
Member
 
Registered: Jul 2020
Posts: 941

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Setting proper access rights to .bash_profile is a way, WAY better idea.
 
Old 03-18-2024, 03:27 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,901

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
Quote:
Originally Posted by lvm_ View Post
Setting proper access rights to .bash_profile is a way, WAY better idea.
yes, you are right, just I don't really understand how can samba configuration change that file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bash script returning "permission denied" error. CentOS7 KarolDworak Linux - Newbie 2 06-21-2018 08:53 AM
Any problem if I install CENTOS7 Workstation over CENTOS7 Server? Rich Strebendt Linux - Software 5 05-03-2018 11:05 PM
-bash: /home/rb27/.bash_profile: Permission denied rach_here Linux - Newbie 4 09-08-2011 07:28 PM
.bash_profile: Permission denied knockout_artist Linux - Newbie 7 10-31-2007 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration