LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-27-2010, 09:39 AM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

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.

Thanks
 
Old 06-27-2010, 10:34 AM   #2
AlucardZero
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, 08:43 PM   #3
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Original Poster
Rep: Reputation: 34
root@centos5 /]# pwd
/
[root@centos5 /]# whoami
root
[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 08:45 PM.
 
  


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

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

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