Hylafax Mailing List Archives

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

Re: [hylafax-users] access denied



Giving world access to the files are almost never a good solution...

Try to find out who is the owner and group of the old files, and match them...
ls -l file     will show the file ownership stuff.
then to change ownership to whoever it is...
Mine has uucp as the owner and groups... so....
chown  uucp file
chgrp uucp file
See if this helps.. if not.. find what user hylafax is running as, and su to 
that user, and try to run the scripts...
su uucp
If that works, you may have some issues with the shell environment... check 
your service users path statements..

Also... instead of using the chmod command, you may be able to put  a umask 
statement in the script. This will set the correct permissions on a newly 
created file.

Hope this helps...
-- 
Cam Coble, A+, Network+
IT Manager
Roanoke Stamp
www.usacustom.com

 "any sufficiently advanced technology
    is indistinguishable from magic."
          -- Arthur C. Clark

On Monday 17 March 2003 02:01 pm, nadine.mauch@fnac.net wrote:
> Dear Hylafax users,
>
> I work with a linux SuSE 8.1 and use Hylafax to send facsimile
> with medical results. It gives very good results, but its report
> (faxstat) does not match our requirements.
>
> So, I've written a bash script to print out the report as wanted.
> To do that I need to search/read some Hylafax files and directories
> with the find command.
>
> It works fine if the user has logged in as root or if the script is
> submitted by cron for root.
>
> When this is not the case I get the message
>
>  find : /var/spool/fax/doneq  permission non accordée (access denied)
>
> To try to solve this problem I've issued following commands
>
>     chmod a+rwx /var/spool/fax/doneq
>     ls -ald /var/spoo/fax/doneq
>                      gives   drwxrwxrwx   2   uucp    uucp    4096   Mar
> 11 ...
>
>     chmod a+rw /var/spool/fax/doneq/*
>      ls -al /var/spool/fax/doneq/*
>                      gives  -rw-rw-rw    1   uucp   60002    796  Mar 10
>  10:20 q7
>                                 ..........
>
> The problem is that the next document sent by Hylafax that is stored
> in /var/spool/fax/doneq will not have theses protections but
> -rw------ so that access will be denied to the next find command.
>
> How is it possible to read/search files in /var/spool/fax/doneq, sendq, ...
> without having access denied ?
> I haven't found any solution at this clue so I submit a chmod command
> every 2mn with the help of cron (!)
>
> Should Hylafax run under a user id ?
>
> Should other directories of Hylafax have protections rwx for
> owner/group/world ?
>
> Should the shell script contain special directives to allow root access
> for the
> find command ?
>
> Thanks for any help
>
> Nadine
>uucp
>
> ____________________ HylaFAX(tm) Users Mailing List _______________________
>   To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
>  On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
>   *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*



____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services