LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 10-24-2005, 05:17 AM   #1
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 10.04, Crunchbang Statler
Posts: 3,325

Rep: Reputation: 168Reputation: 168
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
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,185

Rep: Reputation: 468Reputation: 468Reputation: 468Reputation: 468Reputation: 468
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: Slackware 10.1/10.2/12, Ubuntu 10.04, Crunchbang Statler
Posts: 3,325

Original Poster
Rep: Reputation: 168Reputation: 168
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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 16 02-15-2012 12:28 PM
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


All times are GMT -5. The time now is 03:32 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration