Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Securing Computer Lab

  1. #11
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    15,581
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Securing Computer Lab

    You can reconstruct the skeleton files by copying the contents of /etc/skel as the owner of the home directory. All the files there are hidden, so you need to use "ls -a" to see them:
    Code:
    $ ls -la /etc/skel
    total 48
    drwxr-xr-x   3 root root  4096 Jul 16  2020 .
    drwxr-xr-x 159 root root 12288 Mar 31 16:25 ..
    -rw-r--r--   1 root root   220 Feb 25  2020 .bash_logout
    -rw-r--r--   1 root root  3771 Feb 25  2020 .bashrc
    drwxr-xr-x   2 root root  4096 May 18  2020 .config
    -rw-r--r--   1 root root 14965 Feb 21  2020 .face
    lrwxrwxrwx   1 root root     5 Apr 13  2020 .face.icon -> .face
    -rw-r--r--   1 root root   807 Feb 25  2020 .profile
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  2. #12
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,332

    Re: Securing Computer Lab

    Just delete and recreate the user, that will copy the /etc/skel files back.

  3. #13
    Join Date
    Mar 2021
    Beans
    5

    Re: Securing Computer Lab

    Yeah that was my other thought, which may actually be a lot simpler than the other way of deleting everything but the skel files

Page 2 of 2 FirstFirst 12

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
  •