NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
tenney
Jan 11, 2012Aspirant
chmod not working (Pro 6, 4.2.19)
On my new Pro 6 (running 4.2.19) I created a new share and then backed up a share over from my NV+.
I need to be able to "chmod" specific files here and there, now and then. and it does not work. I've tried mounting the share as SMB and AFP (same results), and as SMB as :admin/c and cd'ing to the share (same results).
Here, e.g., is a command line example smb to the readynas pro 6 as "admin" to "c", and then cd''ed to the directory:
[mac]% ls -ln "The_Layover_Amsterdam_71 TRAVP_1325577600.TiVo"
-rwx------ 1 501 20 1064195744 Jan 5 21:33 The_Layover_Amsterdam_71 TRAVP_1325577600.TiVo*
[mac]% chmod uog-wx "The_Layover_Amsterdam_71 TRAVP_1325577600.TiVo"
[mac]% ls -ln "The_Layover_Amsterdam_71 TRAVP_1325577600.TiVo"
-rwx------ 1 501 20 1064195744 Jan 5 21:33 The_Layover_Amsterdam_71 TRAVP_1325577600.TiVo*
(note: when mounted as the share's owner the "ls -ln" shows "-rw-" without the "x")
Submitting a problem report to Netgear the tech and I went back and forth and she said:
"changing permissions is only supported via frontview. If you are using ANY other method it is not supported. "
Sorry, but this just can NOT be right. How on earth would any NAS work correctly if a Unix system mounting it could not change file permissions? And frontview does not allow a single file's permissions to be changed (that I can see).
What do I have to do to be able to "chmod" a file or files on a mounted share to remove "W" or "WX" permissions?
I need to be able to "chmod" specific files here and there, now and then. and it does not work. I've tried mounting the share as SMB and AFP (same results), and as SMB as :admin/c and cd'ing to the share (same results).
Here, e.g., is a command line example smb to the readynas pro 6 as "admin" to "c", and then cd''ed to the directory:
[mac]% ls -ln "The_Layover_Amsterdam_71 TRAVP_1325577600.TiVo"
-rwx------ 1 501 20 1064195744 Jan 5 21:33 The_Layover_Amsterdam_71 TRAVP_1325577600.TiVo*
[mac]% chmod uog-wx "The_Layover_Amsterdam_71 TRAVP_1325577600.TiVo"
[mac]% ls -ln "The_Layover_Amsterdam_71 TRAVP_1325577600.TiVo"
-rwx------ 1 501 20 1064195744 Jan 5 21:33 The_Layover_Amsterdam_71 TRAVP_1325577600.TiVo*
(note: when mounted as the share's owner the "ls -ln" shows "-rw-" without the "x")
Submitting a problem report to Netgear the tech and I went back and forth and she said:
"changing permissions is only supported via frontview. If you are using ANY other method it is not supported. "
Sorry, but this just can NOT be right. How on earth would any NAS work correctly if a Unix system mounting it could not change file permissions? And frontview does not allow a single file's permissions to be changed (that I can see).
What do I have to do to be able to "chmod" a file or files on a mounted share to remove "W" or "WX" permissions?
7 Replies
Replies have been turned off for this discussion
Here, e.g., is a command line example smb to the readynas pro 6 as "admin" to "c", and then cd''ed to the directory:
Are you SSHing into the Pro 6? If so, have you tried to the sudo chmod XXX "FILENAME" command to see if that works.- tenneyAspirantI am not sshing in. The shares are mounted (SMB the share owner, AFP the share owner, and SMB admin). I've tried "chmod" and "sudo chmod" from the Mac on which the share is mounted with "no joy".
- SSH into the PRO6. This will permit you to perform any file mods as desired.
Download the SSH addon if you have not already done so from here:http://www.readynas.com/?p=4203 - tenneyAspirantYeah, I know that I can void my warranty and use the ssh add on to do this... but (a) having to ssh into the unit when I already have that share mounted and have a local script wanting to chmod a file is a royal pain; and (b) voiding a multi-year warranty is not at all an attractive idea. chmod used to work just fine for me on my NV+'s until I had to restore to factory defaults and backup/move the shares around.
This is very frustrating since the whole idea of any NAS is to be able to mount it (SMB) and do anything you could normally do with any other SMB/NFS/AFP mounted file system. - Not true. Read Chirpa's (i.e. Netgear staff) comment regarding SSH:
http://www.readynas.com/forum/viewtopic.php?f=50&t=46676#p266512 - tenneyAspirantThanks.
I still remain convinced that there is something wrong when the owner (or admin) of a share when it's mounted via SMB can't change the unix owner privs of a file. I should be able to use a standard Unix script that might invoke "chmod" and it should work. There must be just some setting or something that's wrong. ssh'ing in was what I had to do the past few months and it is a pain since it meant that I had to manually do the chmod instead of letting the scripts handle it. (similar problem a while ago on an NV+)
To be told by Netgear customer support officially "changing permissions is only supported via frontview. If you are using ANY other method it is not supported. " means that a ReadyNAS is a device I could never recommend for any of my commercial clients, nor a device that I ever would have purchased as it does not do what a NAS is supposed to do --- you mount a file system and then you can do things like chmod privs on it. - tenneyAspirantWould someone please explain how any commercial NAS system would not support applications and scripts that change Unix file permissions on a file-by-file basis. Here's Netgear's official response to my case. I honestly can not believe that this is the way ReadyNAS is supposed to work. I can think of thousands of companies that use apps and scripts that would stop working on a mounted file system like this. Please tell me this isn't so...
I understand that you would like to be escalated to L3 due to the fact that our device will not let you set per file permissions through NTFS, CIFS, and AFP. Unfortunately I am unable to do so as the most I could do is escalate a feature request for this option.
Although this is not an option on our devices I would like to suggest an alternative solution to this issue. Again if I am understanding correctly you are looking to be able to change the permissions on a single file in a shared folder. This can be accomplished by moving the file in which you would like to change permissions on into a folder. At that time you will be able to set permissions on the folder that the file is located in. By doing this you should be able to edit the permissions of the folder which in turn will be editing the permissions on the file that has been places within it.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!