vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| HOW-TO enable the ordinary user's access right to '/dev/rtc' ? MPlayer seems to demand this and probably you do not want me to listen an Internet radio as root? this is an example outpu: MPlayer 1.0pre7try2-3.3.6 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Skompilowany dla procesora z rozszerzeniami: MMX MMX2 3DNow 3DNowEx SSE Kodeki audio 85 i video 196 Błąd przy otwieraniu /dev/rtc: Permission denied (użytkownik powinien móc go odczytać.) Odtwarzam http://67.43.161.248:80. Resolving w3cache.icm.edu.pl for AF_INET... Connecting to server w3cache.icm.edu.pl[193.219.28.146]:8080 ... Name : Radio Free Colorado - Classic + Modern Rock Mix, 60's to today. Best Hi-Fi Sound on the Net! (...) -- S |
| |||
| S wrote: > Ben Measures wrote: >> First of all, check it exists. > > yes, it exists. I have already set: > chmod 640 /dev/misc/rtc > and > chown root:users /dev/misc/rtc > > and it seems ok for now > would you recommend this? > It's usually owned by root:root and chmod 664. Although, if you are using udev and RC_DEVICE_TARBALL is set to "no" in /etc/conf.d/rc, chown'ing and chmod'ing it will be useless--as the settings are read directly from /etc/udev/permissions.d/50-udev.permissions and /etc/udev/rules.d/50-udev.rules when udev loads. Stu |
| |||
| Stu <stu@santa-li.com> writes: >S wrote: >> Ben Measures wrote: >>> First of all, check it exists. >> >> yes, it exists. I have already set: >> chmod 640 /dev/misc/rtc Why? Why not let users read it? And why would you want to write to it, even as root? >> and >> chown root:users /dev/misc/rtc >> >> and it seems ok for now >> would you recommend this? >> >It's usually owned by root:root and chmod 664. Although, if you are using >udev and RC_DEVICE_TARBALL is set to "no" in /etc/conf.d/rc, chown'ing and >chmod'ing it will be useless--as the settings are read directly >from /etc/udev/permissions.d/50-udev.permissions >and /etc/udev/rules.d/50-udev.rules when udev loads. |