LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 10:39 AM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 436

Rep: Reputation: 33
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, 11:34 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
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
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 436

Original Poster
Rep: Reputation: 33
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 09:45 PM.
 
  


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
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


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