Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-27-2010, 10:39 AM   #1
Registered: Sep 2005
Location: New Jersey, USA
Distribution: Centos 7 , Linux Mint 18.1 Under VMware in Win7
Posts: 502

Rep: Reputation: 34
Root User using Freshclam command cannot write to directory.

When I log on a root and attempt to issue the command ‘Freshclam’ to upgrade the virus definitions it attempts or create a new file with a definition name.

I get a message stating that the directory isn’t writable.

The user and group access rights are as follows:

USER = read, write, execute
Group = read, write, execute
All = read, execute.

The only way I can get around this is by applying a 777 which would be read, write and execute for all.

Now, I have a group define with several user ids in it including Root.

How do I connect the group with the directory/file so I don’t have to apply a 777 access right to group users could issue the Freshclam command.

Old 06-27-2010, 11:34 AM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Be a lot more specific. What directory? Could you post the `ls -ld` of it? Can you post the exact command and output you are getting? Is it on an NFS mount?
Old 01-06-2012, 09:43 PM   #3
Registered: Sep 2005
Location: New Jersey, USA
Distribution: Centos 7 , Linux Mint 18.1 Under VMware in Win7
Posts: 502

Original Poster
Rep: Reputation: 34
root@centos5 /]# pwd
[root@centos5 /]# whoami
[root@centos5 /]# freshclam
ERROR: Can't create temporary directory /var/clamav/clamav-97998fc1d9175dafdb450ff5894d83c9
Hint: The database directory must be writable for UID 102 or GID 103
[root@centos5 /]#

in directory VAR
drwxr-xr-x 7 clamav clamav 4096 Jan 6 21:07 clamav

I'm doing this as my user id and SU to root.

How would I get UID 102 and or GID writable in this case. I have UID 102 in several groups where CLAMAV is listed ... also user root.

any help will be appreciated.

Last edited by swamprat; 01-06-2012 at 09:45 PM.


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
VSFTP - how to allow anonymous write in root directory? Micro420 Linux - Server 3 05-03-2008 03:49 PM
Cannot write to /misc directory - permission denied as root etuhs Fedora 4 06-01-2007 08:20 AM
Active Directory User Cannot Write to Samba Home Directory jonwatson Linux - Networking 2 12-19-2006 01:40 PM
User is not allowed to write in a directory xpucto Linux - Newbie 3 04-19-2006 10:06 AM
Permitting a user to write to another users home directory rddreamz Linux - Newbie 4 11-19-2003 02:01 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:50 PM.

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