Results 1 to 5 of 5

Thread: Accessing Directories ETC

  1. #1
    Join Date
    Apr 2009
    Location
    Surrey, London
    Beans
    288
    Distro
    Ubuntu

    Accessing Directories ETC

    Hi All,

    I have a Ubuntu server with a few users, how to i stop users who are not in the sudoes file from looking in certain home directories. I basic terms:

    I would like to stop all other users from looking into my home dir... (i am the only sudo user on the server)

    Thanks
    Ubuntu 11.04+ Server Installs - Linux User 52879)
    http://www.elliotbeken.co.uk and http://elliotbeken.com

  2. #2
    Join Date
    May 2012
    Beans
    248
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Accessing Directories ETC

    Default directory permissions should not allow users to access other users' home directories.

  3. #3
    Join Date
    Apr 2009
    Location
    Surrey, London
    Beans
    288
    Distro
    Ubuntu

    Re: Accessing Directories ETC

    I know they cant copy edit ETC but they can see the file names/folder names. I would like to stop this, see below example:

    if not sudo user issues "cd /home/elliot/Photos" they can do "ls -a" and see contents....
    Ubuntu 11.04+ Server Installs - Linux User 52879)
    http://www.elliotbeken.co.uk and http://elliotbeken.com

  4. #4
    Join Date
    Apr 2012
    Beans
    7,088

    Re: Accessing Directories ETC

    You can change the mode of your home dir e.g.

    Code:
    user@host:~$ ls /home/steeldriver/
    Desktop  Documents  Downloads  examples.desktop  Music  Pictures  Public  Templates  Videos
    user@host:~$ 
    user@host:~$ sudo chmod 750 /home/steeldriver
    user@host:~$ 
    user@host:~$ ls /home/steeldriver/
    ls: cannot open directory /home/steeldriver/: Permission denied
    user@host:~$

  5. #5
    Join Date
    Apr 2009
    Location
    Surrey, London
    Beans
    288
    Distro
    Ubuntu

    Re: Accessing Directories ETC

    Thanks this has done the trick !!!
    Ubuntu 11.04+ Server Installs - Linux User 52879)
    http://www.elliotbeken.co.uk and http://elliotbeken.com

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
  •