6.0.0-beta1
9/24/25

[#5817] gollem can't change directory after a directory without read permission is entered
Summary gollem can't change directory after a directory without read permission is entered
Queue Gollem
Queue Version 1.0.3
Type Bug
State Not A Bug
Priority 1. Low
Owners Horde Developers (at) , slusarz (at) horde (dot) org
Requester pedretti (at) eco (dot) unibs (dot) it
Created 10/18/2007 (6551 days ago)
Due
Updated 11/13/2007 (6525 days ago)
Assigned 11/01/2007 (6537 days ago)
Resolved 11/13/2007 (6525 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/13/2007 02:13:07 AM Michael Slusarz Comment #9
State ⇒ Not A Bug
Reply to this comment
The Filesystem driver will actually not allow you to change dir to a
dir that you don't have read access to.
Again, isn't that the expected behavior?
The problem is that this is not the case in gollem. Gollem lets you
enter in that dir, and then you are blocked here. The only way to be
able to change the directory is to logout and do a new login.
#1 - How is this any different than any other interface (i.e. shell, 
command line ftp, etc.)

#2 - What are we supposed to do about this?  It is perfectly legal to 
enter a directory with execute privs only, and no ftp function we use 
to interact with the server will throw an error.

#3 - It is completely not true that there is no way to get back when 
you enter these directories.  What about clicking on "My Home"?  What 
about clicking on "Change directory" and typing in the name of the 
directory that you want to go to?  Both work.
11/09/2007 08:16:49 AM pedretti (at) eco (dot) unibs (dot) it Comment #8 Reply to this comment
The Filesystem driver will actually not allow you to change dir to a
dir that you don't have read access to.
Again, isn't that the expected behavior?
The problem is that this is not the case in gollem. Gollem lets you 
enter in that dir, and then you are blocked here. The only way to be 
able to change the directory is to logout and do a new login.
11/09/2007 04:10:05 AM Michael Slusarz Comment #7 Reply to this comment
The Filesystem driver will actually not allow you to change dir to a
dir that you don't have read access to.
Again, isn't that the expected behavior?
11/01/2007 01:30:56 PM gollem (at) duffeaap (dot) com Comment #6 Reply to this comment
The Filesystem driver will actually not allow you to change dir to a 
dir that you don't have read access to.

Perhaps that behaviour would make more sense as you cannot get 'stuck' 
in another directory.
11/01/2007 03:17:58 AM Michael Slusarz Comment #5
State ⇒ Feedback
Reply to this comment
I am confused.  What is the bug?  If you are "caught" in a directory 
where you don't have permissions to view, your only course of action 
is to use the "Change Folder" - but that is expected behavior.
10/29/2007 09:18:31 PM gollem (at) duffeaap (dot) com Comment #4 Reply to this comment
Using Chroot on the FTP server has fixed the problem.

The bug, however, still remains.
10/29/2007 03:58:06 PM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
 
10/29/2007 09:09:42 AM pedretti (at) eco (dot) unibs (dot) it Comment #3 Reply to this comment
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>
10/27/2007 07:27:18 PM gollem (at) duffeaap (dot) com Comment #2 Reply to this comment
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.
10/18/2007 01:56:06 PM pedretti (at) eco (dot) unibs (dot) it Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Queue ⇒ Gollem
Summary ⇒ gollem can't change directory after a directory without read permission is entered
Type ⇒ Bug
Reply to this comment
Gollem show a similar path in the main window:

[Root]/mnt/caesar1/export1/home/guybrush



When I click on caesar1 in the previous path I get this error message:

Permission denied to folder "/mnt/caesar1": Unable to change to /mnt/caesar1.



and the path changes to:

[Root]/mnt



The problem is that clicking on [Root] will give the same permission 
problem, and /mnt can't be cliked. Then I no more cannot view my home 
directory, unless I exit and relogin from horde.



In my opinion, when trying to access a directory without read 
permission it should show a pop-up with the error message, keeping on 
the main window the view of the previous directory,




Saved Queries