LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-19-2002, 10:54 AM   #1
ForumKid
Member
 
Registered: Dec 2001
Posts: 195

Rep: Reputation: 30
Are 2 users able to access the same file


I have a user called test and his directory is /home/test.
I have another user called Backup.
User Backup owns a file called EXPORT.LOG in /home/test.

I want both test and Backup to be able to read this file and I cannot do it.
RIght now it only allows Backup to read and change the file.

Any ideas?

Thanks
 
Old 09-19-2002, 11:09 AM   #2
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 55
you can run chmod as Backup and do something like:
chmod 666 /home/test/yourfile
 
Old 09-19-2002, 11:31 AM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
of course you can!

Search about "right" or "permission"

you should find what you want.
 
Old 09-19-2002, 11:14 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
How's about accessing the same file at the same time, and trying to save it? What would happen in that situation, or would the changes be merged???

Cool
 
Old 09-20-2002, 12:13 AM   #5
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Rep: Reputation: 30
Quote:
Originally posted by MasterC
How's about accessing the same file at the same time, and trying to save it? What would happen in that situation, or would the changes be merged???

Cool
It is impossible to save the file at exactly the same time. Since the file must reside on one harddrive it can only write to the file once at one time. So who ever is first looses, the last person to save will have the changes saved.
 
Old 09-20-2002, 03:32 AM   #6
sandy
Member
 
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230

Rep: Reputation: 30
Re: Are 2 users able to access the same file

Quote:
Originally posted by ForumKid
I have a user called test and his directory is /home/test.
I have another user called Backup.
User Backup owns a file called EXPORT.LOG in /home/test.
I want both test and Backup to be able to read this file and I cannot do it.
RIght now it only allows Backup to read and change the file.
Put backup and test in the same group which is different from your group.( Or create a new group with backup and test as members) then change the mode of the file to 660 by the user backup.

 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 05:33 AM
Public users need file access via Apache dufferin Linux - Networking 1 02-22-2004 01:01 AM
need multiple users to have read/write access to a Quickbooks file at the same time. rbelknap Linux - Security 2 10-14-2003 10:52 PM
number of process or users that can access the same file infusino Linux - Newbie 6 11-28-2002 10:50 AM
MS Access - too many active users toady Linux - Networking 1 11-26-2000 09:03 PM

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

All times are GMT -5. The time now is 06:11 PM.

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