nsg_set(3) Library Functions Manual nsg_set(3)NAME
nsg_set - Set NUMA Scheduling Group owner and permissions (libnuma library)
SYNOPSIS
#include <numa.h>
int nsg_set(
nsgid_t nsg,
nsgid_ds_t *attrib );
PARAMETERS
Specifies the NUMA Scheduling Group (NSG). Points to a structure containing owner and permission attributes.
DESCRIPTION
The nsg_set() function sets the NSG owner IDs (user ID and group ID) and permissions (mode) by using the nsgid_ds structure pointed to by
attrib.
RESTRICTIONS
The effective user ID of the calling process must be equal to the value of nsg_perm.cuid or nsg_perm.uid in the associated nsgid_ds struc-
ture, or the calling process must have write permissions to the NSG.
RETURN VALUES
Success. In this case, nsg_set() set the NSG owner IDs and permissions as specified. Failure. In this case, errno is set to indicate the
error.
ERRORS
If the nsg_set() function fails, it sets errno to one of the following values for the specified condition: The calling process does not
have write permission. The attrib argument specifies an invalid address. The nsg argument does not specify a valid NSG ID.
SEE ALSO
Functions: nsg_attach_pid(3), nsg_init(3), numa_intro(3)
Files: numa_types(4)nsg_set(3)
Check Out this Related Man Page
nsg_destroy(3) Library Functions Manual nsg_destroy(3)NAME
nsg_destroy - Destroys a NUMA Scheduling Group (libnuma library)
SYNOPSIS
#include <numa.h>
int nsg_destroy(
nsgid_t nsg );
PARAMETERS
Specifies the NUMA Scheduling Group (NSG).
DESCRIPTION
Remove the NSG identified by nsg and deallocate associated structures. If the NSG is currently non-empty, existing members are removed
before deleting the NSG.
RESTRICTIONS
The effective user ID of the calling process must be equal to the value of nsg_perm.cuid or nsg_perm.uid in the associated nsgid_ds struc-
ture, or the calling process must have write permissions to the NSG.
RETURN VALUES
Success. In this case, the NSG was successfully destroyed. Failure. The NSG was not destroyed and errno is set to indicate the error.
ERRORS
If the nsg_destroy() function fails, it sets errno to one of the following values for the specified condition: The calling process does not
have write permission. The nsg argument does not specify a valid NSG ID.
SEE ALSO
Functions: nsg_attach_pid(3), nsg_init(3), numa_intro(3)
Files: numa_types(4)nsg_destroy(3)
Hi,
Is there a way we can export a file system with write permissions for only one user.
For eg. we have many users on the network, but only user2 should have write permissions on the exported file system and for others it should be read-only. (7 Replies)
Hi all,
We have some files are under 744 permissions and the the owner is say owner1 and group1.
Now we have another user owner2 of group2, owner2 can remove files of the owner1 and the permission of those files are 744, unix admin told us he did some config at his side so we can do that.
... (14 Replies)
How can I be the owner with complete permissions on my system? I'm running Ubuntu Linux and am the only user. Any help would be appreciated. (2 Replies)
I am working on setup a wiki which should have users and group having read or write permission.
Before that we were using simple write to all methodology.
Now the challenge is this that i have created a 3 users and all of the 3 are able to write to wiki and update the page. Now what i what to... (0 Replies)