chown on a mounted NFS partition gives "Operation not permitted"
Solution 1
By default the root_squash
export option is turned on, therefore NFS does not allow a root user from the client to perform operations as root on the server, instead mapping it to the user/group id specified by anonuid
and anongid
options (default=65534). This is configurable in /etc/exports
together with other export options.
Solution 2
Read the section of the exports(5)
concerning "root squashing":
Very often, it is not desirable that the root user on a client machine is also treated as root when accessing files on the NFS server. To this end, uid 0 is normally mapped to a different id: the so-called anony- mous or nobody uid. This mode of operation (called ‘root squashing’) is the default, and can be turned off with no_root_squash.
So you want:
/mnt/storage-pools *(rw,insecure,sync,no_subtree_check,no_root_squash)
(edited typo)
Related videos on Youtube
Ishey4
Updated on September 17, 2022Comments
-
Ishey4 over 1 year
i am trying to easily bind from MSSQL to ASP.NET in VB. I would like to do something like this...
Public Class Address Public Shared name As String Public Shared address1 As String Public Shared address2 As String Public Shared city As String Public Shared state As String Public Shared phone As String Public Shared email As String End Class
and i want to load these variables from like col. names in MSSQL so something like...
for i = 0 to reader.fieldcount -1 address.(reader.getname(i)) = reader(i) next
how would i do something like this in VB or C#?
-
Admin over 13 yearseverytime I've had this problem there is a space in the exports file between the server mount and the (rw,...
-
-
Ishey4 over 10 yearsi also solved this problem using a dictionary var instead of specific vars.