[Tickets #5817] Re: gollem can't change directory after a directory without read permission is entered
bugs at bugs.horde.org
bugs at bugs.horde.org
Mon Oct 29 09:09:42 UTC 2007
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=5817
-----------------------------------------------------------------------
Ticket | 5817
Updated By | pedretti at eco.unibs.it
Summary | gollem can't change directory after a directory without read permission
| is entered
Queue | Gollem
Version | 1.0.3
Type | Bug
State | Unconfirmed
Priority | 1. Low
Owners |
-----------------------------------------------------------------------
pedretti at eco.unibs.it (2007-10-29 02:09) wrote:
> I'm unsure how you get this error as I'm trying to replicate it.
>
> Which driver are you using? Please provide some more information
> regarding your dir permissions and backends.php settings.
I am using the FTP driver.
All directory permissions up to and including my home directory have a
drwxr-xr-x permissions. The problem is that FTP driver is configured to
access not upper than user's home directory.
Note that originally I wanted to set in backends.php
'root' => '/mnt/caesar1/export1/home/'.$_SESSION['imp']['user'],
to fix this, but some users have home directory in export2, export3, ...
ant this won't work for them.
My backends.php :
$backends['hordeftp'] = array(
'name' => 'FTP Server',
'driver' => 'ftp',
'preferred' => '',
'hordeauth' => true,
'params' => array(
// The hostname/IP Address of the FTP server.
'hostspec' => '127.0.0.1',
// The port number of the FTP server.
'port' => 21,
// Use passive mode?
'pasv' => false,
// Set timeout (in seconds) for the FTP server. Default: 90
seconds
// 'timeout' => 90,
// If true and the POSIX extension is available the driver will
map
// the user and group IDs returned from the FTP server with the
local
// IDs from the local password file. This is useful only if the
FTP
// server is running on localhost or if the local user/group
// IDs are identical to the remote FTP server.
// You must be running a version of Horde >= 3.1 for this
parameter to
// have any effect.
// 'maplocalids' => true,
// The default permissions to set for newly created folders and
files.
// 'permissions' => '750'
),
'loginparams' => array(
// Allow the user to change the FTP server.
// 'hostspec' => 'Hostname',
// Allow the user to change the FTP port.
// 'port' => 'Port'
),
// 'root' => '',
// 'home' => '',
// 'createhome' => false,
// 'filter' => '^regex$',
// 'quota' => false,
'clipboard' => true,
'attributes' => array('type', 'name', 'download', 'modified', 'size',
'permission', 'owner', 'group')
);
The output of a session with ftp shell command:
$ ftp 127.0.0.1
Connected to 127.0.0.1.
220 server1.company.com NcFTPd Server (free educational license) ready.
Name (127.0.0.1:root): guybrush
331 User guybrush okay, need password.
Password:
230-You are user #1 of 50 simultaneous users allowed.
230-
230 Restricted user logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/mnt/caesar1/export1/home/guybrush" is cwd.
ftp> cd ..
553 Permission denied.
ftp> cd /mnt/
553 Permission denied.
ftp> cd /mnt/caesar1/
553 Permission denied.
ftp> cd /mnt/caesar1/export1/
553 Permission denied.
ftp> cd /mnt/caesar1/export1/home/
553 Permission denied.
ftp>
More information about the bugs
mailing list