LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-18-2010, 04:39 PM   #1
vatzcar
LQ Newbie
 
Registered: Jan 2007
Location: India
Distribution: Ubuntu 10.04
Posts: 16

Rep: Reputation: 0
[URGENT] No user is getting access to system except root


Hello,

I have a system running with few users and servers (apache/mysql/postfix). After extracting one tar archive in '/home' none of my users are being able to access their home directory. Even other system users (like www-data/mysql) are also not being able to access any directory. Only root can access the system. I have checked file permissions, many files/directories are set to 777 rest are 755.

Please help
 
Old 06-18-2010, 04:45 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Perhaps you have run out of disk space.
Login as root.
Then post the output of df -h
 
Old 06-18-2010, 05:02 PM   #3
vatzcar
LQ Newbie
 
Registered: Jan 2007
Location: India
Distribution: Ubuntu 10.04
Posts: 16

Original Poster
Rep: Reputation: 0
Thank you for reply. But I have plenty of disk space left. result of df -h

Filesystem Size Used Avail Use% Mounted on
/dev/md1 365G 107G 241G 31% /
tmpfs 991M 0 991M 0% /lib/init/rw
udev 10M 44K 10M 1% /dev
tmpfs 991M 0 991M 0% /dev/shm

I'm not sure, will running out of disk space prevent users to access his/her home directory? Here's a line from login shell for one user after login,

Could not chdir to home directory /home/xxxxx: Permission denied

and users are getting landed on '/' (root)
 
Old 06-18-2010, 05:26 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I'm not sure, will running out of disk space prevent users to access his/her home directory?
It certainly will, but you seem to have plenty of space, so that may not be the problem.

Quote:
Here's a line from login shell for one user after login,
Could not chdir to home directory /home/xxxxx: Permission denied
OK. You "extracted a tar archive in /home". Then everything went wrong.
What, exactly was this "tar archive" an archive of?

And what is the output of
Code:
ls -l /home
?
 
Old 06-18-2010, 05:41 PM   #5
vatzcar
LQ Newbie
 
Registered: Jan 2007
Location: India
Distribution: Ubuntu 10.04
Posts: 16

Original Poster
Rep: Reputation: 0
Errr..... somehow the /home directory changed to 750

Thank you tredegar for your help
 
Old 06-18-2010, 05:53 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
You are welcome.

But I think, that for your own peace of mind, you need to work out just how and why the (permissions for) "the /home directory changed to 750"

That way, you are unlikely to repeat the mistake
 
  


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
software to access file system.. how to allow access for non root users? stdcinout Linux - Newbie 8 03-09-2010 12:55 PM
[SOLVED] How to allow access to some commands having root privleges to be run bu non root user suryashikha Linux - Newbie 8 10-31-2009 01:05 PM
URGENT:Can not find root system manolakis Debian 5 09-28-2007 11:27 AM
assign user with root privilege and permisssion to access system files eyt Linux - General 6 07-27-2007 12:02 PM
Giving a user (not a root) an access to some system commands asschay Linux - Newbie 8 09-08-2005 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:39 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