This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
File transfer
-
ptpstudio
- Starter

- Posts: 57
- Joined: 15 Apr 2014 07:01
- Location: Czech Republic
- Status: Offline
File transfer
I have 2 disk in nas4free after copy files over ssh permissions on folders and files are change why?
- crowi
- Forum Moderator

- Posts: 1176
- Joined: 21 Feb 2013 16:18
- Location: Munich, Germany
- Status: Offline
Re: File transfer
which command did you use?
actually you have to tell most of the the copy commands to preserve the permissions
e.g. see here: http://www.freebsd.org/cgi/man.cgi?query=cp
actually you have to tell most of the the copy commands to preserve the permissions
e.g. see here: http://www.freebsd.org/cgi/man.cgi?query=cp
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
-
ptpstudio
- Starter

- Posts: 57
- Joined: 15 Apr 2014 07:01
- Location: Czech Republic
- Status: Offline
Re: File transfer
I use cp -r then source directory and destination directorycrowi wrote:which command did you use?
actually you have to tell most of the the copy commands to preserve the permissions
e.g. see here: http://www.freebsd.org/cgi/man.cgi?query=cp
Is there any command for ssh to change folders and files permissions ? Example I change one folder then all stuff files and subfolders init change permission as I choose?
If I file, folder transfer over ssh with cp -r command is there something else to add for change or keep same permissions?
- crowi
- Forum Moderator

- Posts: 1176
- Joined: 21 Feb 2013 16:18
- Location: Munich, Germany
- Status: Offline
Re: File transfer
yes, try chmod http://www.freebsd.org/cgi/man.cgi?query=chmod
for copying you need to set the -a or -RpP flag to preserve permissions etc.
for copying you need to set the -a or -RpP flag to preserve permissions etc.
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
-
ptpstudio
- Starter

- Posts: 57
- Joined: 15 Apr 2014 07:01
- Location: Czech Republic
- Status: Offline
Re: File transfer
OK Thankscrowi wrote:yes, try chmod http://www.freebsd.org/cgi/man.cgi?query=chmod
for copying you need to set the -a or -RpP flag to preserve permissions etc.