Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Linux clients can't rename files
New Posts  All Forums:Forum Nav:

Linux clients can't rename files

post #1 of 6
Thread Starter 
I forget if rename is actually classified under a "delete" permission. Goal is to allow read, creation and modify, just not delete.

Linux client connecting to LAN Win servers. Thx.



Acer Aspire One
(7 items)
 
Sprint Force
(6 items)
 
 
CPUMotherboardGraphicsRAM
AMD C-70 Acer AMD Radeon HD 7290 Graphics Kingston ACR512X64D3S16C11G 
Hard DriveOSCase
WDC WD3200BPVT-22JJ5T0 Win 8 Pro 64 Tucano 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S4 Plus MSM8960, Dual core,... Adreno 225 1024 MB RAM microSD, microSDHC, microSDXC up to 64 GB 
OSMonitor
Android (4.0) 4.0 inches, 480 x 800 pixels, 233 ppi, IPS LCD 
  hide details  
Reply
Acer Aspire One
(7 items)
 
Sprint Force
(6 items)
 
 
CPUMotherboardGraphicsRAM
AMD C-70 Acer AMD Radeon HD 7290 Graphics Kingston ACR512X64D3S16C11G 
Hard DriveOSCase
WDC WD3200BPVT-22JJ5T0 Win 8 Pro 64 Tucano 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S4 Plus MSM8960, Dual core,... Adreno 225 1024 MB RAM microSD, microSDHC, microSDXC up to 64 GB 
OSMonitor
Android (4.0) 4.0 inches, 480 x 800 pixels, 233 ppi, IPS LCD 
  hide details  
Reply
post #2 of 6
I think rename is copy and then delete, at least for the mv command.

Edit: nvm, it's classified as "rename"
Code:
07:54:47  stat64            /Users/me/Desktop/test.txt                                                    0.000004   nano        
07:54:52  stat64            test.txt                                                                         0.000009   nano        
07:54:52  stat64            test.txt                                                                         0.000004   nano        
07:54:52  stat64            /Users/me/Desktop/test.txt                                                    0.000005   nano        
07:54:52  lstat64           test.txt                                                                         0.000006   nano        
07:54:52  stat64            test.txt                                                                         0.000003   nano        
07:54:52  open              test.txt                                                                         0.000220   nano        
07:54:52  stat64            test.txt

...

07:54:59  stat64            test1.txt                                                                        0.000023   mv          
07:54:59  access            test1.txt                                                                        0.000003   mv          
07:54:59  rename            test.txt                                                                         0.000128   mv

Edited by The Hundred Gunner - 10/22/13 at 8:00am
post #3 of 6
Quote:
Originally Posted by The Hundred Gunner View Post

I think rename is copy and then delete, at least for the mv command.

Edit: nvm, it's classified as "rename"
Code:
07:54:47  stat64            /Users/me/Desktop/test.txt                                                    0.000004   nano        
07:54:52  stat64            test.txt                                                                         0.000009   nano        
07:54:52  stat64            test.txt                                                                         0.000004   nano        
07:54:52  stat64            /Users/me/Desktop/test.txt                                                    0.000005   nano        
07:54:52  lstat64           test.txt                                                                         0.000006   nano        
07:54:52  stat64            test.txt                                                                         0.000003   nano        
07:54:52  open              test.txt                                                                         0.000220   nano        
07:54:52  stat64            test.txt

...

07:54:59  stat64            test1.txt                                                                        0.000023   mv          
07:54:59  access            test1.txt                                                                        0.000003   mv          
07:54:59  rename            test.txt                                                                         0.000128   mv

mv doesn't copy files.
post #4 of 6
Quote:
Originally Posted by Plan9 View Post

mv doesn't copy files.

As evidenced by the fs_usage snippet.
post #5 of 6
Quote:
Originally Posted by Plan9 View Post

mv doesn't copy files.

It does if the source and dest reside on different devices.
Cube
(9 items)
 
  
CPUMotherboardRAMHard Drive
i7-4930k EVGA X79 Dark Corsair Vengeance Pro Samsung 840 Pro 
CoolingMonitorPowerCase
Corsair H100i Viewsonic VP2770 EVGA SuperNova 1000P2 Corsair Air 540 
Mouse
Corsair M65 
  hide details  
Reply
Cube
(9 items)
 
  
CPUMotherboardRAMHard Drive
i7-4930k EVGA X79 Dark Corsair Vengeance Pro Samsung 840 Pro 
CoolingMonitorPowerCase
Corsair H100i Viewsonic VP2770 EVGA SuperNova 1000P2 Corsair Air 540 
Mouse
Corsair M65 
  hide details  
Reply
post #6 of 6
Quote:
Originally Posted by jvolkman View Post

It does if the source and dest reside on different devices.
Good point
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Linux clients can't rename files