Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Console Foundations Getting Started with the Console Running Commands

my default permissions are different from what is on the running commands video

My default permissions are different from what is on the running commands video. Will this make a difference going forward?


Welcome to the Treehouse Command Line

This computer was built just for you! Feel

The user you are signed in as is: treehous

and the default password is: mike the

treehouse ~ $ ls
documents hello.txt
treehouse ~ $ ls -l
total 8
drwxrwxr-x 2 treehouse treehouse 4096 Jan
-rw-r----- 1 treehouse treehouse 416 Jan
treehouse ~ $

2 Answers

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 Points

I think It will not affect the following in course:

The difference is insignificant:

You current permissions are

-rw-r-----

Which means

  • first "rw" permits you as user to read and write the file
  • second "r" permits for members of treehouse group to read your file
  • and all other users cannot read, write or execute your file

In his video permissions were a bit milder:

-rw-rw-r--

This means:

  • first "rw" permits you as user to read and write the file
  • second "rw" permits for members of treehouse group to read AND WRITE your file (note the difference)
  • third "r" permits all possible users to read the file

So basically, they made your hello.txt file more private, so that other users, members of "treehouse" group cannot write your file.

If you really want, you can change your hello file to the same one that Jim is using, by typing

chmod 664 hello.txt

All knowledge about file permissions read here:

http://linuxcommand.org/lts0070.php

Thanks for helping me concerning permissions. :-)