LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-19-2023, 08:49 PM   #1
MarkGP71
LQ Newbie
 
Registered: Jan 2023
Posts: 1

Rep: Reputation: 0
Unhappy Error adding a new file or directory SFTP server


Hi! I have a problem with a sftp server, just a day it failed!

User "compliance"

When I enter vía sftp with my user itīs ok, but in my directory I canīt create anything, itīs not because of permissions, only "failure create a file". I noticed that my disk is full 100% used, but my question is, when I login with root user in the same directory I can create everything I want, so why? is it not about of free space? why with another user I canīt!

I was looking for some information and I found about "quota users", but with df -h command this "compliance" user has space, so I think is not the problem.

Any ideas please?

I repeat it, itīs not about of permissions, everything is ok with this and I was working ok, just one day it failed.

Thank you!

Last edited by MarkGP71; 01-19-2023 at 08:52 PM.
 
Old 01-19-2023, 09:05 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Quote:
I noticed that my disk is full 100% used
Welcome to LinuxQuestions.

Without knowing what distribution you are running I would guess the filesystem in use is ext4. By default when an ext4 filesystem is created it reserves 5% of the total space for root which is why it can create files but your regular user can not. Reserved space allow root to login and access the filesystem and also prevent fragmentation.

You can reduce the amount of reserved space but do not go to zero or you will not be able to login. Delete some files if you can but you need to delete the space needed to go below 95% to see some available space.
 
  


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
Couldn't read directory: No such file or directory when connecting to a server through sftp hienha123 Linux - Newbie 4 01-14-2021 02:35 AM
How to log internal-sftp chroot jailed users access log to /var/log/sftp.log file LittleMaster Linux - Server 0 09-04-2018 03:45 PM
SFTP throwing "End of file" when doing SFTP transfer in perl exceed1 Programming 5 03-06-2010 01:34 PM
cannot login into SFTP server using Net::SFTP cccc Programming 1 10-31-2007 06:23 AM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM

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

All times are GMT -5. The time now is 03:33 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
Open Source Consulting | Domain Registration