Find the answer to your Linux question:
Results 1 to 3 of 3
Everytime I start a terminal I get this error message: bash: /dev/null: Permission denied bash: /dev/null: Permission denied bash: /dev/null: Permission denied bash: /dev/null: Permission denied akulah@linux:~> I am using ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Location
    Romania
    Posts
    2

    bash: /dev/null: Permission denied , Why????


    Everytime I start a terminal I get this error message:

    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    bash: /dev/null: Permission denied
    akulah@linux:~>

    I am using Suse 9.1 with the default kernel 2.6.4
    Can anyone help me with that ? TNX in advanced!!!!!!!!!!

  2. #2
    Just Joined!
    Join Date
    Mar 2005
    Posts
    18
    Hi Akulah,

    The problem seems to be with the permissions of
    the /dev/null. This seems to be read only at the
    moment for you. Check this by logging in as root
    and listing it with the command:
    ls -l /dev/null
    You should see this if everything is correctly
    set:
    crw-rw-rw- 1 root root 1, 3

    If you get a different set of permissions like
    this maybe:
    -rw-r--r-- 1 root root 1, 3

    then you should (as root) delete the /dev/null with:
    rm /dev/null

    and recreate it (as root) again with:
    mknod -m 0666 /dev/null c 1 3

    (The device number according to the Kernel source
    in the documentation under Documentation/devices.txt
    supposed to be Major=1 und Minor=3)

    Now, list the /dev/null again and you should see
    the permissions as above. Hope this helps..
    John

  3. #3
    Just Joined! wmatthews702's Avatar
    Join Date
    Mar 2009
    Location
    Las Vegas, Nevada
    Posts
    11
    Thanks that was driving me crazy.

  4. $spacer_open
    $spacer_close

Posting Permissions

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