[Bug 733523] New: /var/lock permissions re: arduino, minicom
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c0 Summary: /var/lock permissions re: arduino, minicom Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: s2@forceway.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 It seems something has changed from openSUSE 11.4. Programs like minicom & arduino (IDE) worked fine before if you added your user to the uucp & dialout groups. Now arduino gives an error like: LOCKING /dev/ttyUSB0 lib_lock_dev_lock() lockstatus fail, are you in group 'lock'? .and you are unable to select a serial port in the menu. minicom displays a similar lock error. Adding user to the lock group has no effect. The quick workaround is: sudo chmod g+rwx,o+rwt /var/lock Reproducible: Always Steps to Reproduce: 1. have a serial port. 2. install & run minicom -D /dev/ttyUSB0 (for example) 3. lock error message Actual Results: "Cannot create lockfile..." Expected Results: should be able to create locks somehow -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c1 Valerio Pilo <amroth@coldshock.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amroth@coldshock.net --- Comment #1 from Valerio Pilo <amroth@coldshock.net> 2011-11-30 09:39:08 UTC --- I can confirm this bug; I only tested it with Minicom however. The workaround works. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c2 --- Comment #2 from John McInnes <s2@forceway.com> 2011-11-30 21:16:36 UTC --- Looks like /var/lock is now controlled by systemd. Should mtab be changed to get what we want? .and I guess what we want is a group that the user could be added to to get the right permissions. What would the security implications be? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c3 Mathias Homann <admin@eregion.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |admin@eregion.de --- Comment #3 from Mathias Homann <admin@eregion.de> 2011-12-05 14:51:37 UTC --- i can confirm this misbehaviour. since a good part of my daily work happens hooked up to various networking gear using minicom and serial console cables... .. 12.1 is a right pain in the **** for me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |lnussel@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c4 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lnussel@suse.com AssignedTo|lnussel@suse.com |fcrozat@suse.com --- Comment #4 from Ludwig Nussel <lnussel@suse.com> 2011-12-06 16:56:33 CET --- 1. do not blindly put users in arbitrary system groups like uucp just because some device or directory is owned by that group. That may give the user more access than intended. 2. permissions for /var/lock are wrong with systemd. It should be 0775 root:lock. /var/lock/lockdev and /var/lock/subsys should not exist on openSUSE. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c5 --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2011-12-06 16:29:52 UTC --- /var/lock* permissions under systemd are coming from upstream file : /usr/lib/tmpfiles.d/legacy.conf I've just looked at the discussion about lockdev / subsys which happened early this year on systemd mailing list. I've done the change in home:fcrozat:systemd / systemd -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c6 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |maintenance@opensuse.org --- Comment #6 from Frederic Crozat <fcrozat@suse.com> 2011-12-09 14:44:00 UTC --- sr 96122 pushed to openSUSE:12.1:Update:Test requesting maintenance update for 12.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c7 --- Comment #7 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-12-09 16:01:09 CET --- This is an autogenerated message for OBS integration: This bug (733523) was mentioned in https://build.opensuse.org/request/show/96122 12.1 / systemd https://build.opensuse.org/request/show/96125 Factory / systemd -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c8 --- Comment #8 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-12-09 19:01:08 CET --- This is an autogenerated message for OBS integration: This bug (733523) was mentioned in https://build.opensuse.org/request/show/96193 Factory / systemd -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c9 --- Comment #9 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-12-12 18:01:17 CET --- This is an autogenerated message for OBS integration: This bug (733523) was mentioned in https://build.opensuse.org/request/show/96377 12.1 / systemd -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|maintenance@opensuse.org | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c11 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Frederic Crozat <fcrozat@suse.com> 2012-01-04 13:12:09 UTC --- maintenance update for 12.1 has been released, closing as fixed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c12 Jörg Gutowski <jgutowski@rsw-orga.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jgutowski@rsw-orga.de --- Comment #12 from Jörg Gutowski <jgutowski@rsw-orga.de> 2012-01-31 08:00:58 UTC --- Please reopen this bug. The permissions are not working für uucico. The errors from /var/log/uucp/Log: uucico asdf7 - (2012-01-30 19:45:34.73 16900) ERROR: creat (/var/lock/TMP0000004304): Permission denied uucico asdf7 - (2012-01-30 19:45:34.73 16900) ERROR: System already locked The permissions of /var/lock: drwxrwxr-x 2 root lock 40 Jan 29 18:17 /var/lock installed systemd: systemd-37-3.6.1.x86_64 Permissions of /usr/lib/uucp/uucico: -r-sr-sr-x 1 uucp uucp 279624 Oct 29 19:26 /usr/lib/uucp/uucico So I think the /var/lock-directory realy needs group uucp. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733523 https://bugzilla.novell.com/show_bug.cgi?id=733523#c13 Anton Moiseev <benderamp@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |benderamp@gmail.com --- Comment #13 from Anton Moiseev <benderamp@gmail.com> 2014-02-14 18:37:08 UTC --- Fresh OpenSUSE 13.1. MPIDE from ChipKIT.org project. Still have this problem - when run as normal user (the use IS added to "lock" group): LOCKING /dev/ttyUSB0 lib_lock_dev_lock() lockstatus fail, are you in group 'lock'? LOCKING /dev/ttyS31 lib_lock_dev_lock() lockstatus fail, are you in group 'lock'? LOCKING /dev/ttyS30 lib_lock_dev_lock() lockstatus fail, are you in group 'lock'? LOCKING /dev/ttyS29 lib_lock_dev_lock() lockstatus fail, are you in group 'lock'? LOCKING /dev/ttyS28 lib_lock_dev_lock() lockstatus fail, are you in group 'lock'? .. The program does not work - it does not allow me to work with the connected board. When run as root: LOCKING /dev/ttyUSB0 LOCKING /dev/ttyS31 LOCKING /dev/ttyS30 LOCKING /dev/ttyS29 LOCKING /dev/ttyS28 LOCKING /dev/ttyS27 LOCKING /dev/ttyS26 LOCKING /dev/ttyS25 .. The program works. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com