chmod 600 changed type of file to binary

Bug #1279082 reported by gbonline

This bug report was converted into a question: question #244064: chmod 600 changed type of file to binary.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

Hi, I'm following the instructions to install nginx and passenger on my ubuntu/unity 13.10 x86_64 machine as indicated on phusion site.
Then I need to create a file passenger.list into /etc/apt/sources.list.d and I do it with sudo nano /etc/apt/sources.list.d/passenger.list

The file I create on nautilus is showed as text file!
After in the instructions, I need to do the commands
$ sudo chown root: /etc/apt/sources.list.d/passenger.list
$ sudo chmod 600 /etc/apt/sources.list.d/passenger.list

and after the last command on nautilus, I see that the file is a binary file!

this kind of file 'binary' cause an error when i need to use the apt as
WARNING:root:could not open file '/etc/apt/sources.list.d/passenger.list'

chmod doesn't change the file type, right?
G.

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1279082/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
John Kim (kotux) wrote :

It wants to confirm that chown doesn't change filetypes.

description: updated
Changed in ubuntu:
status: New → Invalid
Revision history for this message
John Kim (kotux) wrote :

Excuse me, I meant "chmod."

The answer to the question is no. Chmod changes permissions of a file by giving a certain combination of read, write, and execute access to a user or group.

Here is a good resource to look at.
http://www.dangibbs.co.uk/journal/a-basic-introduction-to-chmod-for-linux

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.