id="info"

Question

Locked

Linux Ubuntu

By femiamos ·
Please can anyone help solve this problem using ubuntu.
I type into gnome terminal " chmod 755 testfile".
Error Message = chmod: cannot access ' testfile': No such file or directory.

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

You cannot change the attributes of a non-existant file...

by wizard57m-cnet Moderator In reply to Linux Ubuntu

irregardless of the operating system. Create a file named testfile, then try again.

Collapse -

Reponse To Answer

by femiamos In reply to You cannot change the att ...

It's work thank for the advise.

Collapse -

Reponse To Answer

by femiamos In reply to You cannot change the att ...

But there is another problem. After creating a file for testfile and running the command as below
" chmod 755 testfile". it came up as " total 0" .

I was expecting to see somethings like this " -rwxr-xr-x 1 femi femi 0 2010-10-09 19:15 testfile".

Can you please explain why and what I need to do to get the permissions ( -rwxr-xr-x) appears.

Collapse -

Here is a link to an explanation of chmod (change mode)

by wizard57m-cnet Moderator In reply to Linux Ubuntu

http://en.wikipedia.org/wiki/Chmod

I'm not exactly sure what you are attempting to do, so maybe this general explanation
will help. In your example, chmod 0755 testfile made the file named testfile executable
with full access by all users.
You mentioned using Ubuntu, I'm not well versed in this distribution, but thankfully
shell commands are usually the same across all distributions. What file manager
does Ubuntu have now? PCManFM? Dolphin? Anyway, it might be easier to use
the file manager you have installed, right click on the file and choose properties...
most file managers have hooks to the shell commands to modify file attributes.

Collapse -

Reponse To Answer

by Slayer_ In reply to Here is a link to an expl ...

It's probably for school.

Back to Linux Forum
6 total posts (Page 1 of 1)  

Operating Systems Forums