Find the answer to your Linux question:
Results 1 to 6 of 6
I have been trying to learn how to change a file's permissions and so i wanted to try and change the permissions for "cdrom0". So i opened a terminal and ...
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    10

    Navigating Linux files and folders

    I have been trying to learn how to change a file's permissions and so i wanted to try and change the permissions for "cdrom0". So i opened a terminal and tried to navigate to cdrom0 by using: /home/colinga/media/cdrom0 but all i get back is:
    No such file or directory? Could someone tell me what i am doing wrong please.

  2. #2
    Just Joined!
    Join Date
    May 2008
    Posts
    10
    I went to the Home folder and from there i found the Media folder which contained cdromO. So i opened the Media folder and right clicked on cdronO and selected open in terminal. I then typed the following: sudo chmod g+w cdromO. Typed in my password. But i still keep getting: No such file or directory. Help someone please!

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Post

    Hi colinga,
    I'm unable to understand your problem correctly.
    In General to change permission of any file try the following steps:
    I want to change permission of file say /home/oss/example.txt


    Step 1: First check whether the file exists or not. (provide absoulte path name.)
    Code:
    $ls -l /home/oss/example.txt
    -rw-rw-r--  1 oss oss 2 May  6 15:07 /home/oss/example.txt
    Yes we have that file.

    Step 2:use chmod with absoulte path name.

    Code:
    $chmod g+x /home/oss/example.txt
    $ ls -l /home/oss/example.txt
    -rw-rwxr--  1 oss oss 2 May  6 15:07 /home/oss/example.txt
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  4. #4
    Just Joined!
    Join Date
    May 2008
    Posts
    10
    Have tried everything that i know of as well as help off Lakshmipathi but i still can't add the HTML file to a CD-RW. Think i'll go back to using Windows. At least i could get things done.

  5. #5
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    Quote Originally Posted by colinga View Post
    Have tried everything that i know of as well as help off Lakshmipathi but i still can't add the HTML file to a CD-RW. Think i'll go back to using Windows. At least i could get things done.
    Hi - You probably don't need to change permissions to do that. It's possible that the file you're working with is a symbolic link (much like a Windows shortcut).

    Have you tried using K3b to burn the file? You might be using the wrong set of steps to achieve something quite simple, but I know it takes time to adjust from using Windows to doing things the *nix way.
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  6. #6
    Just Joined!
    Join Date
    May 2008
    Posts
    10
    Hi Fingal i think you maybe right. Shall have a go burning the file to a CD-RW using k3b.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...