Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I have recently upgraded SuSe 10.1->10.2 and encountered a strange problem : After I reboot the system, permissions of /dev/nvram and /dev/rfcomm1 change to their default values. In particular, ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Location
    Germany
    Posts
    73

    /dev/ permissions change after stratup/reboot

    Hello,

    I have recently upgraded SuSe 10.1->10.2 and encountered a strange problem :
    After I reboot the system, permissions of /dev/nvram and /dev/rfcomm1 change to their default values.

    In particular, default values are :
    crw-rw---- 1 root root 216, 1 2007-04-12 17:13 /dev/rfcomm1
    crw------- 1 root kmem 10, 144 2007-04-12 19:12 /dev/nvram
    [The first is used for bluetooth, the second-for thinkpad-keys]

    As a consequence, nobody (except root) can access these devices, so each time I need
    sudo chmod 666 /dev/xxx
    or
    sudo chown root:users /dev/xxx
    From practical point of view, it is possible to put these commands in startup script.
    But I am interested what causes this problem ??? I tried to look for files containing [chmod/chown] /dev/xxx in /etc/ folder, bu found nothing. I did not have this problem under SuSe 10.1

    Thanks in advance for any hints and suggestions,
    Xaleandr

  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    It's probably udev setting the permissions. You can change udev's rules to get the permissions you want, but you need to be really careful with how open you make your device nodes (as a general rule, 666 is too permissive).
    Stand up and be counted as a Linux user!

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Location
    Germany
    Posts
    73
    Thanks a lot,

    the problem was indeed in udev
    (file /etc/udev/rules.d/50-udev-default.rules to be exact.) Now everything works, even with permission 644.

Posting Permissions

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