Print

Print


I'm trying to add read/listing access to certain files on a Auth file Database, and I'm having trouble when filename (or path) contains an space character.

I've tried enclosing the whole path with double quote ` " `, with single quotes ` ' `, and also replacing spaces with `"\ "`, but XRootD fails at initialize when having these paths... It seems there is no way to specify them.


My XRootD config file:

```
oss.localroot /data
xrootd.export /


xrootd.seclib /usr/lib64/libXrdSec.so
sec.protocol pwd -d:0 -a:0 -vc:1

ofs.authorize
acc.authdb /etc/xrootd/Authfile
acc.authrefresh 60

oss.defaults readonly

```

And example of a line in Authfile that causes this issue:

```
u anon "/100/path/New Folder" rl
```
or
```
u anon '/100/path/New Folder' rl
```

xrootd.log:

```
210421 16:09:59 760032 acc_Config: Authorization system using configuration in /etc/xrootd/xrootd-default.cfg
=====> acc.authdb /etc/xrootd/Authfile
=====> acc.authrefresh 60
Config 2 authorization directives processed in /etc/xrootd/xrootd-default.cfg
210421 16:09:59 760032 acc_ConfigXeq: Missing template - "/100/path/New
Config 2 auth entries processed in /etc/xrootd/Authfile
------ Authorization system initialization failed.
++++++ Checkpoint initialization started.
Config warning: checkpoints disabled because the checkpoint directory is rooted in '/tmp'!
++++++ Checkpoint initialization completed.
------ File system server initialization failed.
210421 16:09:59 760032 XrootdConfig: Unable to load base file system using default
------ xroot protocol initialization failed.
210421 16:09:59 760032 XrdProtocol: Protocol xroot could not be loaded
------ xrootd anon@host:-1 initialization failed.

```

Thanks in advance.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1445

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1