LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-24-2005, 05:17 AM   #1
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
How does minicom write to /var/lock


I'm trying to figure out how the minicon program can write to the directory /var/lock when it's executed by a normal user.

minicom is owned by root/uucp and the permissions are
-rwxr-xr-x.
/var/lock is owned by root/lock and the permissions are
drwxrwxr-x.
The user is neither a member of uucp nor of lock.

When running the program as a normal user, 3 files are created in /var/lock; they are owned by the normal user and the group is lock.

Can anybody explain? I've tried to figure it out from the sourcecode (of a newer version), but till now I'm stuck.

PS: OS=RH8
 
Old 10-25-2005, 01:54 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What user does the minicon process itself run as? If its a daemon it likely runs as root regardless of who owns the binary.
 
Old 10-26-2005, 03:28 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Original Poster
Rep: Reputation: 282Reputation: 282Reputation: 282
minicom is a terminal program
Code:
ps -ef |grep minicom

wim    2034    1354    0  10:25    pts/3    00:00:00    minicom
 
  


Reply

Tags
minicom



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 24 04-12-2019 10:42 AM
touch /var/lock/subsys/local <<-- Why? cl2imson Linux - Newbie 12 06-26-2011 02:35 PM
/var/lock/subsys/ stefaandk Linux - Newbie 2 07-21-2005 07:27 PM
can't lock /var/run/crond.pid robeb Linux - General 0 06-08-2002 12:26 PM
How to Lock Files (/etc/passwd /var/spool/[user] Larry James Programming 3 12-04-2000 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration