Results 1 to 3 of 3

Thread: Standard user directory permissions

  1. #1
    Join Date
    Nov 2010
    Beans
    26

    Question Standard user directory permissions

    Hi,


    As a standard user, I can create directories in my home directory and add files to them. However, when I list the permissions on the directory and the file, I get the following

    drwr-xr-x /home/user/tempdir
    -rw-r--r-- /home/user/tempdir/tempfile.txt

    I can, however, edit the file and remove/rename both the directory and the file.

    Why do the permissions appear this way (I would expect w permission)? Is there some restriction I have not run across?

    I'm using Ubuntu 10.04 Netbook Remix if it makes a difference.

    Thanks in advance!

  2. #2
    Join Date
    Sep 2010
    Location
    Indian Capital City
    Beans
    913
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Standard user directory permissions

    Quote Originally Posted by awp2513_ View Post
    Hi,


    As a standard user, I can create directories in my home directory and add files to them. However, when I list the permissions on the directory and the file, I get the following

    drwr-xr-x /home/user/tempdir
    -rw-r--r-- /home/user/tempdir/tempfile.txt

    I can, however, edit the file and remove/rename both the directory and the file.

    Why do the permissions appear this way (I would expect w permission)? Is there some restriction I have not run across?

    I'm using Ubuntu 10.04 Netbook Remix if it makes a difference.

    Thanks in advance!
    But there is a 'w' there in both directory and file. Do you want only 'w' ?

    Those are the default permissions for directory and files with a umask of 0022 on the system

    Have a look here http://www.cyberciti.biz/tips/unders...lue-usage.html
    When you have eliminated the impossible, whatever remains, however improbable, must be the truth !!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Mark it [SOLVED] if the issue has been resolved

  3. #3
    Join Date
    Jul 2007
    Location
    Burlington, NC
    Beans
    1,995
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Standard user directory permissions

    The permissions summary is 3 triplets - {user}{group}{others}

    drwxr-xr-x = directory, read/write for owner, read only for everyone else
    -rw-r--r-- = file, read/write for owner, read only for everyone else
    -rwxr-xr-x = program, execute/write for owner, execute only for everyone else

    Your "umask" setting is the default mode of newly created files.
    The normal "umask 022" means that all new files will be read-only to everyone else.

    A "umask 077" would mean that all new files are completely denied to everyone else.
    But, one only needs write permission to that folder in order to delete the files.
    Give me Free Software or Give me Death!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •