Find the answer to your Linux question:
Results 1 to 9 of 9
i recently built a 2005.0 box using the Universal CD when i finished, i tried loggin in with my user account and got this: -bash: /dev/null: Permission Denied -bash: /dev/null: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Posts
    31

    /dev/null: Permission Denied


    i recently built a 2005.0 box using the Universal CD

    when i finished, i tried loggin in with my user account and got this:

    -bash: /dev/null: Permission Denied
    -bash: /dev/null: Permission Denied

    I read a guide that said to chmod 666 /dev/null

    that works, and the message disappears


    HOWEVER, i am unable to run XTERM or Konsole or anything like that in KDE/Fluxbox/XFCE4

    emerge info shows gcc-3.4.3-20050110-r2, and that is supposesd to include the fix. WTF is wrong ?

  2. #2
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    Are you sure your user is a member of all those groups:
    Code:
    bash-2.05b$ groups
    wheel floppy audio cdrom video games usb users

  3. #3
    Just Joined!
    Join Date
    Nov 2004
    Posts
    31
    doesnt need to be. obviously you werent reading.

    this is a problem specific to GCC, and i am wondering if anyone has found a workaround to this yet?

  4. #4
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    Weird, it works fine here...

  5. #5
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    I had a problem where xterm would not run within certain xwms. Does your xterm work if logged in as root? Mine worked as root but not as a user so I
    Code:
    chmod 777 /dev
    and every thing worked fine from there on out. Not sure but its worth a shot.
    Operating System: GNU Emacs

  6. #6
    Just Joined!
    Join Date
    Nov 2004
    Posts
    31
    lol. i figured that out many moons ago but yes that is what i had to do

    havent been on LF.net for a while

    Thanks tho

  7. #7
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    this sounds as if it is the solution to the problem...http://www.gentoo.org/doc/en/udev-guide.xml scroll down to #3
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  8. #8
    Linux User
    Join Date
    Nov 2003
    Location
    Brooklyn, NY
    Posts
    347
    Guys you should really pay attention to what the hell are you doing before even suggesting it to others. It is a problem with latest Dbus as loft306 said.

    Now that you did chmod 777 /dev, any user on your computer can destroy your box. Amongst many other EXTREMELY obvious and stupid reasons something as basic as cat /dev/zero > /dev/hda will destroy your whole setup.

  9. #9
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Stockholm, Sweden
    Posts
    1,296
    well pointed out slip, Advice like that is extreemly bad for anyone that comes across it who doesnt know better,

    DO NOT CHMOD 777 /DEV/* or anything.. there really is no need to have any files that are world read/write and executable.. if you do (as slip says) you system is wide open to attack or accidental destruction.. you might as well use windows ME

Posting Permissions

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