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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-19-2002, 10:54 AM
|
#1
|
Member
Registered: Dec 2001
Posts: 195
Rep:
|
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
|
|
|
09-19-2002, 11:09 AM
|
#2
|
Member
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Rep:
|
you can run chmod as Backup and do something like:
chmod 666 /home/test/yourfile
|
|
|
09-19-2002, 11:31 AM
|
#3
|
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
of course you can!
Search about "right" or "permission"
you should find what you want.
|
|
|
09-19-2002, 11:14 PM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
09-20-2002, 12:13 AM
|
#5
|
Member
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195
Rep:
|
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.
|
|
|
09-20-2002, 03:32 AM
|
#6
|
Member
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230
Rep:
|
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.

|
|
|
All times are GMT -5. The time now is 06:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|