Permissions and Identity


Your ability to manipulate files and directories at the command line is directly limited by your identity and the permissions available to that identity. Table A.3 lists commands that can be used to adjust file-level permissions, and commands used to temporarily change your identity.

Table A.3. Permissions and Identity Commands

COMMAND

GENERAL USAGE

DESCRIPTION

Chgrp

chgrp GROUP FILE

Changes file and directory group ownership.

Chmod

chmod [OPTIONS] MODE FILE

Changes access permissions on files and directories on native Linux filesystems.

Chown

chown [OPTIONS] OWNER[:GROUP] FILE

Changes file and directory user and group ownership.

Su

su [OPTIONS] USERNAME

Substitutes current user credentials with the specified user's identification.

Common options include

- Causes a complete login process to be performed using the new user identification

Sux

sux [OPTIONS] USERNAME

Performs an su to the new user credentials, but also creates an Xauthority file necessary for accessing the local X server.

Common options include

- Causes a complete login process to be performed using the new user identification

whoami

whoami

Displays current user identification.




    NovellR Open Enterprise Server Administrator's Handbook SUSE LINUX Edition
    Novell Open Enterprise Server Administrators Handbook, SUSE LINUX Edition
    ISBN: 067232749X
    EAN: 2147483647
    Year: 2005
    Pages: 178

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net