Reply
Highlighted
Aspirant

Modifiying existing files on the USB readyshare in EXT4 format through samba

 Hello all,

 

I recently purchased this router for my home. I have plugged an USB drive of 4TB on it. This USB drive is composed of 2 partitions of 2TB each in EXT4 format. Previously, I used this USB drive on my former ISP router to backup my files. I would like to to the same with my netgear router.  All the partitions have write and read access without password configured on readyshare.

I use ubuntu/linux for all my computers at home. I can mount easily both drive with samba. I can add files or create new folders to the root of both partitions. However, I cannot modify or add files to the previous folders existing on the partitions. I tried a lot of different options for samba configuration and it is always the same.

 I checked with ls -l and all folders have the same owner and rights.

 

To illustrate my problem, I will give an example. Let's say I want to add a new file called new_file.txt.

My partitions is like:

PartitionI

- /OldFolder1

- /OldFolder2

...

- /OldFolderN

 

After my tests, my partition is now:

PartitionI

- /OldFolder1

- /OldFolder2

...

- /OldFolderN

- /NewFolder1

- - /Subfolder1

- - - new_file.txt

- - /Subfolder2

- - - new_file.txt

- - new_file.txt

- new_file.txt

When I tried to copy my new_file.txt to OldFolderX, I have a permission rejection. I checked with ls -l and all folders have the same owner and rights.

 

I am a bit lost right now about how to solve this issue. I hope someone can help me

 

Thanks in advance.

 

Best Regards,

yanndan

 

 

 

Model: R6220|AC1200 Smart WiFi Router with External Antennas
Message 1 of 4
Highlighted
Guru

Re: Modifiying existing files on the USB readyshare in EXT4 format through samba

> [...] I tried a lot of different options for samba configuration and
> it is always the same. [...]

   Not much meat on that bone, but if you can write somewhere on a
shared file system, then I'd expect that you whould be able to write
anywhere without worrying about Samba options (subject to the usual
UID/GID/permission/ACL restrictions).  (Are there any ACLs involved?)

> [...] I checked with ls -l and all folders have the same owner and
> rights. [...]

   It's nice that you're happy, but, as usual, showing actual
actions/commands with their actual results (output, error messages, LED
indicators, ...) can be more helpful than vague descriptions or
interpretations.

Message 2 of 4
Highlighted
Aspirant

Re: Modifiying existing files on the USB readyshare in EXT4 format through samba

Dear all,

 

Thanks for your answer. I have currently the current option for samba:

guest,sec=ntlm,uid=1002,gid=100,rw,auto,vers=1.00 

 

I write below the commands I tried several times. I hope it gives you more information.

nas@XXX:~$ touch netgear_test.txt
nas@XXX:~$ cp -v netgear_test.txt /media/Backup_Pictures/
'netgear_test.txt' -> '/media/Backup_Pictures/netgear_test.txt'
nas@XXX:~$ cp -v netgear_test.txt /media/Backup_Pictures/Photos/
'netgear_test.txt' -> '/media/Backup_Pictures/Photos/netgear_test.txt'
cp: impossible de créer le fichier standard '/media/Backup_Pictures/Photos/netgear_test.txt': Permission non accordée
nas@XXX:~$ ll /media/Backup_Pictures/
total 145628
-rw-r--r--  1 nas users        0 sept. 27 09:12  netgear_test.txt
drwxrwxr-x 15 nas users        0 mai   28 11:16  Photos/

Best Regards,

yanndan

Message 3 of 4
Highlighted
Aspirant

Re: Modifiying existing files on the USB readyshare in EXT4 format through samba

Hello,

 

I am adding more info from the command stat:

nas@XXX:/media/Backup_Pictures$ mkdir tmp
nas@XXX:/media/Backup_Pictures$ stat netgear_test.txt 
  Fichier\Uffffffff: netgear_test.txt
   Taille\Uffffffff: 0         	Blocs\Uffffffff: 0          Blocs d'E/S\Uffffffff: 16384  fichier vide
P\Uffffffffph\Uffffffffque\Uffffffff: 32h/50d	In\u0153ud\Uffffffff: 21          Liens\Uffffffff: 1
Acc\Uffffffff: (0644/-rw-r--r--)  UID\Uffffffff: ( 1002/     nas)   GID\Uffffffff: (  100/   users)
Acc\Uffffffff: 2018-09-27 09:12:36.799326000 +0200
Modif.\Uffffffff: 2018-09-27 09:12:36.799326000 +0200
Changt\Uffffffff: 2018-09-27 09:12:36.799326000 +0200
  Cr\Uffffffff: -
nas@XXX:/media/Backup_Pictures$ stat Photos/
  Fichier\Uffffffff: Photos/
   Taille\Uffffffff: 0         	Blocs\Uffffffff: 0          Blocs d'E/S\Uffffffff: 16384  r\Uffffffffrtoire
P\Uffffffffph\Uffffffffque\Uffffffff: 32h/50d	In\u0153ud\Uffffffff: 153616385   Liens\Uffffffff: 15
Acc\Uffffffff: (0775/drwxrwxr-x)  UID\Uffffffff: ( 1002/     nas)   GID\Uffffffff: (  100/   users)
Acc\Uffffffff: 2018-09-27 05:22:03.923426000 +0200
Modif.\Uffffffff: 2018-05-28 11:16:09.114775100 +0200
Changt\Uffffffff: 2018-09-26 10:01:11.829690400 +0200
  Cr\Uffffffff: -
nas@XXX:/media/Backup_Pictures$ stat tmp
  Fichier\Uffffffff: tmp
   Taille\Uffffffff: 0         	Blocs\Uffffffff: 0          Blocs d'E/S\Uffffffff: 16384  r\Uffffffffrtoire
P\Uffffffffph\Uffffffffque\Uffffffff: 32h/50d	In\u0153ud\Uffffffff: 190578689   Liens\Uffffffff: 2
Acc\Uffffffff: (0755/drwxr-xr-x)  UID\Uffffffff: ( 1002/     nas)   GID\Uffffffff: (  100/   users)
Acc\Uffffffff: 2018-09-27 09:59:28.619326000 +0200
Modif.\Uffffffff: 2018-09-27 09:59:28.619326000 +0200
Changt\Uffffffff: 2018-09-27 09:59:28.619326000 +0200
  Cr\Uffffffff: -

Best Regards,

yanndan

Message 4 of 4
Top Contributors
Discussion stats
  • 3 replies
  • 585 views
  • 0 kudos
  • 2 in conversation
Announcements