1

I am logged in to some server with smbclient and I am sharing a LaTeX project (contained in directory) with other people. Currently, all files seem to have permissions 600. For other people to be able to collaborate, they (i.e. anyone) must be able to modify all files within that directory. However,

chmod -R 777 directory

returns NT_STATUS_INVALID_PARAMETER How do I apply chmod recursively within a smbclient prompt?

Jan M.
  • 163
  • is directory on an NTFS filesystem? Also note that setting 666 on a directory will make it completely inaccessible to everyone (please see the permissions tag wiki) – Zanna Jan 02 '17 at 11:03
  • You should use chmod -R 777 directory which will give permissions to all files currently in the folder and files added in the future without giving permissions to the directory itself. – Arduino_Sentinel Jan 02 '17 at 11:14
  • @Arduino_Sentinel that does change the permissions of the directory itself – Zanna Jan 02 '17 at 11:43
  • @Arduino_Sentinel this returns "NT_STATUS_INVALID_PARAMETER". – Jan M. Jan 02 '17 at 12:24
  • @Zanna I have no idea. I am not the admin. – Jan M. Jan 02 '17 at 12:29
  • @Arduino_Sentinel , the syntax is also chmod 777 -R directory but that returns the same error. – Jan M. Jan 02 '17 at 12:30
  • Yeah it seems the filesystem does not support Linux file permissions. I don't know about samba but afaik you will need to adjust the mount options to fix permissions. If you are not the admin, I would suggest asking them! – Zanna Jan 02 '17 at 12:38
  • @Zanna there's no way that it could depend on how I mounted the share? At the moment I used smbclient "server adress" -U username. I also seem to be able to change the mode for individual files. Are there smbclient alternatives? – Jan M. Jan 02 '17 at 12:51
  • @Zanna ,sure!i forgot that i used the directory it self – Arduino_Sentinel Jan 02 '17 at 12:59
  • By the way,as @Zanna said,it might be hard in your condition to fix the problem as you are not the admin – Arduino_Sentinel Jan 02 '17 at 13:02
  • 1
    Possibly you should use smb.conf, if the mount options allow read/write? I don't have experience with smb, I just commented originally because I saw an ill-advised chmod :/ I hope someone with the right expertise finds your question. I will upvote it now... – Zanna Jan 02 '17 at 13:09
  • Remember when accessing file server via Samba that you are accessing files in the windows world and the access rights are not managed the same way. So, it does not surprise me too much that you get such an error message. On what kind of server does directoryreside? Do you have any control on it? – Marc Vanhoomissen Jan 02 '17 at 15:32
  • I have no control over it. Behaviour is also very erratic: 2 Windows users and 1 Ubuntu user were able to modify the files earlier. Using Nautilus to view the permissions shows "Unable to display permissions". Maybe I should just recreate everything locally, change the permissions and then upload the files. – Jan M. Jan 02 '17 at 15:36
  • did you manage to fix it in the end? – Zanna Apr 09 '17 at 18:04
  • No I gave up, SMB servers shouldn't be used for collaborative LaTeX projects anyway :P I think it's not supported due to the NTFS filesystem.. Thank you for your help, though! – Jan M. Apr 10 '17 at 11:28
  • 2

0 Answers0