Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am working on remote drive mounted on my system where i created some file i need to set some permission for that file.

I used icacls but its not working.

When i am trying to access file permission its working fine.

Z:\test_permission>icacls file1.txt 
file1.txt "my user name":(I)(RX,W,DC) 
Everyone:(I)(RX)

While when i try to change its permission it says access denied.

Z:\test_permission>icacls file1.txt /deny "user name":R 
file1.txt: Access is denied. 
Successfully processed 0 files; Failed processing 1 files 

For work around: When on the same disk we are working from Linux and used chmod then all work fine. Now i am trying to do same thing using Windows so i am using icacls. Also i can't use Cygwin i have to use some Windows command only.

Please correct me if i am doing something wrong.

share|improve this question
    
one more thing if it may useful the remote drive hv FAT file system. and my local drive is NTFS –  Abhishek Jan 24 '13 at 5:38

1 Answer 1

up vote 0 down vote accepted

You do not have "Change permissions" rights as the user you are running icacls as. Either run the script/command prompt as administrator or make sure your user has change permission rights on the remote folder (and the files therein).

enter image description here


I Just saw your comment in your original question. FAT formatted drives do not have permissions settings. That is why the security tab is not there for you. On the server side when you are setting up folder sharing you should be able to set some basic permissions up (I don't know what OS the other machine is but I am assuming Win 7 for my example)

On the computer that is hosting the share, go to Properties->Sharing->Advanced Sharing->Permissions.

enter image description here

From there you need to make sure your user you are connecting as has Change permissions to be able to modify files.

share|improve this answer
    
thx scott for quick reply. I want to confirm something that i can create/delete files overther. one more question how can i check permission over there as right click->properties only giving 3 tabs (general, previous version and customize) there is no security tab where i can check permissions :( should i contact drive owner for these? –  Abhishek Jan 24 '13 at 5:47
    
If the security tab is not showing up I am not sure what could be wrong, It shows up fine when I tried it on my machine. Perhaps try setting your permissions up on the dive owner's computer. –  Scott Chamberlain Jan 24 '13 at 16:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.