[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[efax-users] Re: Can't send fax as USER



Stephen Liu wrote:
> Hi Rolf,
> 
> Thanks for your advice.
> 
> On Tue, 2003-05-27 at 21:25, Rolf Pedersen wrote:
> 
> 
>>I am running RH 8.0 but I will try your suggestion
>>
>>FWIW,  I had to become root to fax until I made a small change (Mandrake 
>>9.1, efax-0.9a-1mdk).  What I did, IIRC, was to chown -R fax.fax 
>>/var/spool/fax and add the user to the fax group.
> 
> 
> Kindly confirm follows;
> 
> # chown -R fax.fax /var/spool/fax
> 
> (Is there a "." (stop) between fax.fax)
> 

Yes, this works also as fax:fax but I think fax.fax is being adopted as 
the correct syntax.

> 
> I suppose the fax group you referred to is
> 
> # cd /var/spool/fax/
> # ls
> incoming  outgoing
> 
> # cd /var/spool/fax/outgoing/
> # ls -l
> total 4
> -rw-------    1 lp       lp              0 May 22 15:42 acct
> -rw-------    1 lp       lp              0 May 22 15:42 control.pr
> -rwxrwxrwx    1 lp       lp              0 May 22 15:10 lock
> drwxrwxrwt    2 lp       lp           4096 Sep  4  2002 locks
> -rw-------    1 lp       lp              0 May 22 15:42 log
> -rw-------    1 lp       lp              0 May 22 15:42 status
> -rw-------    1 lp       lp              0 May 22 15:42 status.pr
> 
> # cd /var/spool/fax/incoming/
> # ls -l
> total 4
> -rw-r--r--    1 root     root         3935 May 27 12:01 modem.1626
> 

I'm not an expert on this so you are left to your own devices.  Here's 
what I've got that might be relevant:

[rolf@localhost rolf]$ ll /var/spool/fax
total 1
drwxr-xr-x    2 fax      fax            48 Feb 12 10:41 incoming/
drwxr-xr-x    2 fax      fax            48 Feb 12 10:41 outgoing/
[rolf@localhost rolf]$ ll /var/spool/fax -d
drwxr-xr-x    4 fax      fax            96 Mar 30 12:32 /var/spool/fax/
[rolf@localhost rolf]$ ll /usr/bin/fax
-rwxr-xr-x    1 root     root        16184 Jan 18 07:32 /usr/bin/fax*
[rolf@localhost rolf]$ ll /var/lock -d
drwxrwxr-x    3 root     root           72 May 27 06:08 /var/lock/


What I frequently do is call konqueror from a root prompt to adjust 
permissions on files and directories under the Permissions tab when you 
right-click the file.  You can also change user(owner) and group here.

> 
> Where shall I add the USER.  
> 

This is another thing that I usually do in the gui.  Mandrake has 
userdrake, where you can add groups that a user belongs to.  Do
apropos user
and
apropos group
to get an idea of the manuals to read.  Do
man usermod
where you will see that
usermod -G
can be used to add a group to the user's list of groups, as long as you 
list all the current groups, as well.  Like I say, I am not expert, so I 
don't know what is the best.  I think the owner.group is somewhat 
arbitrary as long as it is consistent.  As I look at the permissions 
under /var/spool, I see that group doesn't have write permissions, so I 
don't completely understand what it is I am saying to do.  Maybe you can 
figure something out.

> Is it to
> 
> #chmod 666 modem.1626
> 
> Kindly advise.  Thanks in advance.
> 
> B.Regards
> Stephen
> 
> 
>