EnglishFrenchSpanish

Ad


OnWorks favicon

dpns-setacl - Online in the Cloud

Run dpns-setacl in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command dpns-setacl that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


dpns-setacl - set DPNS directory/file access control lists

SYNOPSIS


dpns-setacl [-d] [-m] [-s] acl_entries path...

DESCRIPTION


dpns-setacl sets the Access Control List associated with a DPNS directory/file.

acl_entries is a comma separated list of entries. Each entry has colon separated fields:
ACL type, id (uid or gid), permission. Only directories can have default ACL entries.

The entries look like:

user::perm
user:uid:perm
group::perm
group:gid:perm
mask:perm
other:perm
default:user::perm
default:user:uid:perm
default:group::perm
default:group:gid:perm
default:mask:perm
default:other:perm

The ACL type can be abbreviated to the first letter. The first "user" entry gives the
permissions granted to the owner of the file. The following "user" entries show the
permissions granted to specific users, they are sorted in ascending order of uid. The
first "group" entry gives the permissions granted to the group owner of the file. The
following "group" entries show the permissions granted to specific groups, they are sorted
in ascending order of gid. The "mask" entry is the maximum permission granted to specific
users or groups. It does not affect the "owner" and "other" permissions. The "mask"
entry must be present if there are specific "user" or "group" entries. "default" entries
associated with a directory are inherited as access ACL by the files or sub-directories
created in that directory. The umask is not used. Sub-directories also inherit the
default ACL as default ACL. As soon as there is one default ACL entry, the 3 default ACL
base entries (default user, default group, default other) must be present.

The entry processing conforms to the Posix 1003.1e draft standard 17.

The effective user ID of the process must match the owner of the file or the caller must
have ADMIN privilege in the Cupv database.

path specifies the DPNS pathname. If path does not start with /, it is prefixed by the
content of the DPNS_HOME environment variable.

uid can be given as the username or the corresponding numeric id.

gid can be given as the groupname or the corresponding numeric id.

perm can be expressed as a combination of characters rwx- or as a value between 0 and 7.

OPTIONS


-d remove ACL entries. The "perm" field is ignored.

-m modify existing ACL entries or add new entries.

-s set the ACL entries. The complete set of ACL entries is replaced.

EXAMPLES


Let's create a directory:
dpns-mkdir /dpm/dteam/test/file.log/d6
and add write permission for user bcouturi:
dpns-setacl -m u:bcouturi:rwx,m:rwx /dpm/dteam/test/file.log/d6
Let's create a directory:
dpns-mkdir /dpm/dteam/test/file.log/d7
and add default ACLs to it:
dpns-setacl -m d:u::7,d:g::7,d:o:5 /dpm/dteam/test/file.log/d7
Let's check the resulting ACLs:
dpns-getacl /dpm/dteam/test/file.log/d7
# file: /dpm/dteam/test/file.log/d7
# owner: baud
# group: c3
user::rwx
group::r-x #effective:r-x
other::r-x
default:user::rwx
default:group::rwx
default:other::r-x

Let's create a sub-directory and check the resulting ACLs:
dpns-mkdir /dpm/dteam/test/file.log/d7/d2
dpns-getacl /dpm/dteam/test/file.log/d7/d2
# file: /dpm/dteam/test/file.log/d7/d2
# owner: baud
# group: c3
user::rwx
group::rwx #effective:rwx
other::r-x
default:user::rwx
default:group::rwx
default:other::r-x

Let's create a file in the same directory and check the resulting ACLs:
dpns-touch /dpm/dteam/test/file.log/d7/f2
dpns-getacl /dpm/dteam/test/file.log/d7/f2
# file: /dpm/dteam/test/file.log/d7/f2
# owner: baud
# group: c3
user::rw-
group::rw- #effective:rw-

other::r--

EXIT STATUS


This program returns 0 if the operation was successful or >0 if the operation failed.

Use dpns-setacl online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 2
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 3
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 4
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • 5
    Task Coach
    Task Coach
    Task Coach - Your friendly task
    manager. Task Coach is a free open
    source todo manager. It grew out of
    frustration about other programs not
    handling composite ...
    Download Task Coach
  • 6
    HyperSQL Database Engine (HSQLDB)
    HyperSQL Database Engine (HSQLDB)
    HSQLDB is a relational database engine
    written in Java, with a JDBC driver,
    conforming to ANSI SQL:2016. A small,
    fast, multithreaded engine and server
    with mem...
    Download HyperSQL Database Engine (HSQLDB)
  • 7
    BATIK-RECOVERY
    BATIK-RECOVERY
    Project Recovery developed by Batik
    Recovery Teamwork from Indonesia, this
    Batik Recovery is a derivative of the
    Official TWRP that was modified by the
    develope...
    Download BATIK-RECOVERY
  • More »

Linux commands

Ad