Files in a shared directory


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Files in a shared directory
# 1  
Old 07-24-2011
Files in a shared directory

At work, we have a shared directory where we modify files via ssh. This can be an issue if two people unknowingly try to open and modify the same file. Sure, one user could send a mass e-mail/IM to the group, letting everyone know when he/she is accessing a file, but I was wondering if there was a better solution. Do you guys think it would be worth doing a chmod every time we open/close a file?

I would also like to know if there is a unix command/script to see who has a file open?
# 2  
Old 07-24-2011
NFS might be a solution in such cases
# 3  
Old 07-24-2011
The unix command is "fuser". This command is of little use in this situation because the status of the file can change so quickly.
The usual method is to not permit direct editing of the file. Then have a temporary "token" file to reserve access to the common file.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Directory containing files,Print names of the files in the directory that are exactly same content.

Given a directory containing say a few thousand files, please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents. func(a_directory_name) output -> {“matches”: , ... ]} e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies

2. Solaris

ZFS shared with NFS makes directory cover filesystem

I'm having a strange issue that I'm unsure what to do with. I have a new Solaris home server that I want hard mount /home to all our servers. I've made each user's home directory a filesystem so that I can manage every user with a quota. In each one of my server vfstab files I have it set as: ... (4 Replies)
Discussion started by: mijohnst
4 Replies

3. UNIX for Dummies Questions & Answers

Removing Lines Shared by Multiple Files

Hey everyone, I have a question about comparing two files. I have two lists of files. The first list, todo.csv, lists a series of compounds my supervisor wants me to perform calculations on. The second list, done.csv, lists a series of compounds that I have already performed calculations on.... (2 Replies)
Discussion started by: Stuart Ness
2 Replies

4. Solaris

Strange thing with solaris ls on nfs shared directory

I shared from linux server a dir with nfs3,solaris mount ok,and can tar files,but if i do ls or cp.. on mnt i have mount the nfs share root@solaris: mnt $ touch 2 root@solaris: mnt $ ls -lh ls: can't read ACL on .: Permission denied root@solaris: mnt $ ls 1.tar 2 root@solaris: mnt $ cp... (4 Replies)
Discussion started by: Linusolaradm1
4 Replies

5. UNIX for Dummies Questions & Answers

Shared directory permissions

I use User private groups, and have setup a new group 'team' and member users, and a shared directory owned by that group with permissions as follows: drwxrwsr-x 2 holocene team 4096 2010-05-29 14:45 holoceneshardir My objective is collaboration among group 'team' members. ... (5 Replies)
Discussion started by: holocene
5 Replies

6. Solaris

shared directory

how can I make a shared directory between two UNIX servers??? (6 Replies)
Discussion started by: mm00123
6 Replies

7. Filesystems, Disks and Memory

Shared Home directory between Unix servers

Hi Im working in an environment where 2 production and 2 testing unix servers are used.. All these servers share the same home directory.. how is it done where would the home directory be located (0 Replies)
Discussion started by: raghav288
0 Replies

8. UNIX for Dummies Questions & Answers

copy file from UNIX to shared directory

Hi, I want to copy a file from unix machine to a shared windows directory. i tried using the ftp command but i was able to transfer the file only to my local directory. Is there any way we can transfer/copy the files from unix to windows shared directory.......... Please help. Thanks (5 Replies)
Discussion started by: sireesha15
5 Replies

9. Windows & DOS: Issues & Discussions

mounting a directory to a windows 2000 shared folder

until recently I've been using the following command successfully: mount -t smbfs -o username=my_user_name,password=password /home/temp/ //oldserver/openexchange To connect to a Win2000 shared folder called openexchange on a machine called //oldserver. But as from today, I've been getting... (2 Replies)
Discussion started by: cw1972
2 Replies

10. UNIX for Dummies Questions & Answers

Samba - Where are the shared files?

HI! My Linux box is sharing files with two Windows platforms (winXP and Win98). The Windows computers can see the Samba shares, but how do I access the Windows shares from my Linux computer? (2 Replies)
Discussion started by: jot-87
2 Replies
Login or Register to Ask a Question