[Solved] 7340 directory permissions not inherited on external drive with sftp

Oops.

Code:
test@fritz:~$ mkdir /var/tmp/test
test@fritz:~$ ls -ld /var/tmp/test
drwxr-xr-x    2 test     test            40 Apr 30 22:30 /var/tmp/test
 
Here it seems to work. I assume you are able to create subdirectories here?

Please look at your .config. Is the Symbol "FREETZ_MODULE_ext2" selected. Try to unselect it and build a new firmware then.
 
Correct, I can create subdirectories in /var/tmp:

Code:
test@fritz:~$ mkdir -p /var/tmp/dir1/dir2/dir3
test@fritz:~$ ls -ld /var/tmp/dir1
drwxr-xr-x    3 test     test            60 Apr 30 23:01 /var/tmp/dir1
test@fritz:~$ ls -ld /var/tmp/dir1/dir2
drwxr-xr-x    3 test     test            60 Apr 30 23:01 /var/tmp/dir1/dir2

ext2 module is selected:

Code:
test@fritz:~$ cat /etc/.config|grep ext2
FREETZ_MODULE_ext2=y

Build it completely without the ext2 module, or just reselect it you mean?

edit: I deselected the ext2 module, but at the end of the build process it says:

Code:
installing modules
    mbcache.ko
    ext2.ko
 
Zuletzt bearbeitet:
It's enough to build a new firmware with ext2 module deslected.
 
I deselected the ext2 module and used that build as my usbroot filesystem, but it always crashes. Often before I can ssh in and when I can it always crashes soon after logging in.

Or did you mean I should make the basic image with the usbroot package without the ext2 module, and not the usb filesystem without the ext2 module?
 
Zuletzt bearbeitet:
The AVM 7340 firmware has it's own ext2-Module. So it isn't neccessary to overwrite it. I didn't remeber that you are using usbroot on your 7340. You will have to attach your stick to the PC and copy ext2.ko from freetz-trunk/build/original/filesystem/lib/modules/... to the freetz fs.

Regards
Oliver
 
With AVM's ext2 module it's the same. I created user "avm" and checked permissions:

Code:
root@fritz:/var/mod/root# ls -ld /var/media/ftp/uStor06/ext/ftp/avm
drwxr-sr-x    3 avm      avm           4096 May  1 14:51 /var/media/ftp/uStor06/ext/ftp/avm

Logged in and tried to create directories:

Code:
avm@fritz:~$ mkdir -p dir1/dir2
mkdir: can't create directory 'dir1/dir2': Permission denied

Owner is still root:

Code:
drwxr-sr-x    2 root     avm           4096 May  1 14:51 dir1

Do you think it could make a difference if I just try ext3 or reiserfs?

Edit: I forgot you can't use reiserfs with usbroot. I did try ext3, but had the same issue.
 
Zuletzt bearbeitet:
Considering I have the same issue with ext3, could it be it has something to do with usbroot? I use the same setup on my 7170 and there everything's fine.
 
I formatted the external drive with ext2 and tried a fresh firmware using external processing instead of usbroot. It still has the same problem!?
 
Are you sure that you used the AVM modules and not the ones from Freetz?

Regards
Oliver
 
It works!

The culprit was the freetz ext2 module. Does this mean the freetz ext2 module has to be altered to make it work with the 7340?

Created directories are now, as they should be, owned by the user:

Code:
test@fritz:~$ mkdir -p dir1/dir2/dir3
test@fritz:~$ ls -ld dir1
drwxrwsr-x    3 test     test          4096 May  1 23:50 dir1
test@fritz:~$ ls -ld dir1/dir2
drwxrwsr-x    3 test     test          4096 May  1 23:50 dir1/dir2
test@fritz:~$ ls -ld dir1/dir2/dir3
drwxrwsr-x    2 test     test          4096 May  1 23:50 dir1/dir2/dir3


Thank you so much for taking the time to help me with this, you're awesome!
 
This means that we need new kernel sources from AVM. Perhaps you can write to them...

Regards
Oliver
 

Statistik des Forums

Themen
246,273
Beiträge
2,249,287
Mitglieder
373,862
Neuestes Mitglied
904lte
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.