LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2003, 06:11 AM   #1
malcie
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
Directory security issue


Hi there,

I have created a group - lets call it mygroup.
I have created a user - let's call him myuser, he is a member of mygroup.
He has a home directory of /home/myuser.

I have a directory that myuser is responsible for, lets call it mydirectory (original, or what!). This directory is located in /dir1/dir2/dir3/mydirectory.

dir1, dir2 and dir3 are owned by user root and group root. mydirectory is owned by user myuser and group mygroup (although it was formerly owned by root). User, group and others have full read, write, execute access into mydirectory.

If myuser tries to copy anything into mydirectory from his home directory, he gets a 'No space left on device' error (although there is tons of space on the server). I can only presume it is a rights issue, but I can't see why or how since he owns mydirectory.

Does anybody know what might cause this behaviour?

P.S. I am connecting remotely to a RedHat 7.1 server via Putty if this helps.

Many thanks,

Malcie.
 
Old 07-17-2003, 10:57 AM   #2
malcie
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
It is worth noting that mydirectory is an Apache web directory. Could Apache be affecting access to this directory? (I'm not too familiar with Apache - Nor Linux for that matter). This problem is getting me down!

Thanks again,

Malcolm.
 
Old 07-17-2003, 11:07 AM   #3
Rumblefish
Member
 
Registered: Jun 2003
Location: Delaware
Distribution: Redhat 7.0, 7.2, 8.0, 9.0, FreeBSD 4.6.2
Posts: 51

Rep: Reputation: 15
You can have all the space in the world open on your hard disk, but if you run out of space on a particular partition, then you can't write to that partition. Check the size of the partition that mydirectory resides on, and check the usage on that partition. It may be out of space, especially of it's not on the /usr partion (which should be the vast majority of your system unless is configured specifically for a certain purpose, for instance a DNS server, which shouldn't have that many users to begin with).

If that's not the issue, scan your disk for errors, primarily for surface errors. There may be a bad sector on the disk that is preventing any write operations from completing.

To check the diskspace allotted and used for a particular filesystem:

df [filesystem]
 
Old 07-18-2003, 02:44 AM   #4
malcie
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry, I should have mentioned that if I try the same copy command as root, it works no problem.

I will try out your suggestion anyway to see how much disk space is allocated - even if it turns out not to be the problem, it would be good to find out such information (I didn't build the server and wouldn't have known how to find out such info).

Thanks Rumblefish,

Malcie.
 
Old 07-18-2003, 07:10 AM   #5
malcie
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks Rumblefish,

After your suggestion I did what you said and found the filesystem in question to be full. Got rid of a couple of HUGE files - everything now OK. Thanks a lot.

How could root write to the filesystem though if it was full?

Thanks again,

Malcie.
 
  


Reply


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
webmin issue, poss security issue bejiita Slackware 3 11-03-2004 06:07 AM
sgid/directory security connman Linux - Security 2 04-15-2004 11:42 AM
apache directory security steve_babbage Linux - Security 1 02-20-2004 01:15 PM
Apache directory security cli_man Linux - Security 2 10-14-2002 05:40 PM
Security issue.. marcoc Linux - Newbie 8 05-01-2002 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration