Tags

Setting Permissions

Linux

Introduction

For a general introduction to Linux file permissions, see this link.

Viewing Permissions

  1. login to any CLASSE Linux system (such as lnx201)
  2. Use ls -l to view the permissions of the directory you are interested in
    • ls -l /nfs/user/

Default Permissions

To change the permissions of new files and directories created from Linux, use the umask command. This is commonly added to your ~/.bashrc LoginScripts file. For example:
  • umask 002 : user and group can read and write, everyone else can just read
  • umask 022: user can read and write, everyone else can just read
  • umask 077: user can read and write, no-one else can read or write

Setting Permissions

  1. login to any CLASSE Linux system (such as lnx201)
  2. Change to the desired directory.
    • cd /nfs/user Note: there is a space between cd and /
  3. Change the permissions appropriately. See The man page for chmod or type man chmod for LOTS of information.
  4. If you want to change the group that can access the folder, you use chgrp (see man chgrp or man chown).
  5. If you need special groups to access the folder that do not currently exist, please open a service ticket.
  6. If you want help or training on this, please open a service ticket.

Examples

  1. Make it so that only you can modify files in your User directory, but anyone with a CLASSE account can view and read. These are the default permissions.
    • chmod -R 755 /nfs/user/dab66
  2. Make it so that nobody besides you can access your private subdirectory. Again, these are the default permissions.
    • chmod -R 700 /nfs/user/dab66/private

Windows

In general, permissions on filesystems accessed from Windows using samba must be modified from Linux as documented above.
  1. Right Click on the document or folder you want to change the permissions on.
    permissions1.JPG
  2. In the dialog box, select the \Users (this will apply to all domain user accounts, but not Administrators). If a directory, select if you want it to apply these settings to all subfolders/files (normally you want to do this). Select the type of Access you want, click OK.
    >permissions2.JPG
Topic revision: r4 - 04 Mar 2016, WernerSun
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CLASSE Wiki? Send feedback