Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 03-24-2008, 04:07 PM   #1
LQ Newbie
Registered: Jul 2005
Distribution: Slackware 10.2 + Slax 5.1.8 + Knoppix 5.0.1 + LFS 6.3
Posts: 24

Rep: Reputation: 15
Problem with permissions for the /etc/profile for unprivileged users.

I built a LFS system using LFS-6.3 Book from
I am now going though the BLFS 6.2 book. After setting up the Bash Shell Startup files, unprivileged users cannot access the /etc/profile made by root. The /etc/profile has its permissions, owner, and group is set to -rw-r--r-- root root. Whenever an unprivileged user logs in, they get a message before the prompt appears: "/etc/profile: Permission Denied". How do I fix this?

Last edited by Exeis; 03-24-2008 at 04:07 PM. Reason: spelling error
Old 03-24-2008, 05:38 PM   #2
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
Do a long list of your root directory; i.e.,
ls -l /
The /etc directory should be
drwxr-xr-x  70 root root   5904 2008-03-24 16:47 etc/
That is, mode 755. If it isn't, there's your problem.

The profile file should be as you have stated.

The only other thing that might -- might -- be a problem is if something in /etc/profile is not public readable or public executable. Look at the file and check the permissions of anything that executes (surrounded by ``).


bash, security, startup

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Allow unprivileged users to change runlevel TexasDex Linux - Software 8 03-03-2008 09:16 AM
Samba users permissions problem Jordi Linux - Server 3 04-26-2007 03:48 AM
problem with users, groups, and permissions. symo0009 Linux - General 4 01-24-2006 12:54 PM
Printers for unprivileged users dvishloff Linux - General 2 09-01-2005 01:59 PM
uncompress and compiling problem for unprivileged user. sixth_sense Linux - Software 3 05-09-2004 02:38 PM > Forums > Linux Forums > Linux - Security

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

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