The Love Bug (thelovebug) wrote,
The Love Bug
thelovebug

File permissions...

Heh...

aaron@kratos:~$ mkdir base; cd base
aaron@kratos:~/base$ touch base{1,2,3,4}
aaron@kratos:~/base$ ls -l
total 0
-rw-r--r-- 1 aaron aaron 0 Nov 4 01:59 base1
-rw-r--r-- 1 aaron aaron 0 Nov 4 01:59 base2
-rw-r--r-- 1 aaron aaron 0 Nov 4 01:59 base3
-rw-r--r-- 1 aaron aaron 0 Nov 4 01:59 base4
aaron@kratos:~/base$ su -
Password:
root@kratos:~# useradd us
root@kratos:~# cd /home/aaron
root@kratos:/home/aaron# chown -R us.us base/
root@kratos:/home/aaron# ls -l base/
total 0
-rw-r--r-- 1 us us 0 Nov 4 01:59 base1
-rw-r--r-- 1 us us 0 Nov 4 01:59 base2
-rw-r--r-- 1 us us 0 Nov 4 01:59 base3
-rw-r--r-- 1 us us 0 Nov 4 01:59 base4
Tags: geek
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment