LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 03-24-2008, 03:07 PM   #1
Exeis
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 www.linuxfromscratch.org.
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 03:07 PM. Reason: spelling error
 
Old 03-24-2008, 04:38 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 2,992

Rep: Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737
Do a long list of your root directory; i.e.,
Code:
ls -l /
The /etc directory should be
Code:
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 ``).
 
  


Reply

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


All times are GMT -5. The time now is 02:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration