Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Discover the last user in a group to edit a file? Post 302490997 by citaylor on Wednesday 26th of January 2011 11:02:05 AM
Old 01-26-2011
I would also go down the revision control system route, however I would recommend a centralized server system , like subversion or cvs or perforce...
This would have the pro's that Perderabo was talking about, but the file could be available across the enterprise, cutting out the issues with FTP and other file transfer methods. It would give you a versioned file that you could tell who editted last, it can be rolled back, and most importantly the file can be accessed on any system, including using GUI clients. For example we have people in documentation that need to update html documentation on our product. They dont know, and dont wish to know unix. So they use a GUI client called "tortoise svn". This plugs into the Windows Explorer, and they just change the files naturally on windows using their favourite editors, etc. Once they have finished their editing they commit the changes and they're done. On the unix side, then when we build the product we drag these files in (the line endings are automatically mapped from CRLF to native line endings), and build the product. If we need to make changes, we can change the html files with the editor of our choice on UNIX and commit them when required. If we find an error introduced, we can look at the revisions, see when, where and who introduced them, and correct it, or roll back the version of the file. The files can then be centrally protected using passwords and access control, and it can be centrally backed up. We do this for every file we produce - code, images and documentation. I hope this helps...
 

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Edit/update an /etc/group database entry (c/c++)

Hello I'm writing a program for managing accounts and groups in a linux system. My problem is how to update the members of a group in the /etc/group file,if i have to add/remove those members. total 3 variables for adding some new members to the group : char **oldmembers=grp->gr_mem; ... (1 Reply)
Discussion started by: mekos
1 Replies

2. UNIX for Dummies Questions & Answers

is it really not possible for me to edit the etc/group & the etc/passwd files?

From what I have read it possible to create a new group by editing the etc/group and etc/passwd in UNIX two files but a non-experienced user may face many problems such as destroying the file by mistake ot that his changes to these file does not make any difference. However, there is this... (2 Replies)
Discussion started by: whatev3r
2 Replies

3. Shell Programming and Scripting

Find all files with group read OR group write OR user write permission

I need to find all the files that have group Read or Write permission or files that have user write permission. This is what I have so far: find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}' It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies

4. Solaris

How can i edit /etc/vfstab in single user mode

Hi Experts /etc/vfstab is corrupted as while editing it i forgot to comment some of the line. how can i edit the file in single in user mod? also, i have some problem in CD drive , so i cant boot it from CD and do the changes. i tried mounding the root file system as rw, however no... (10 Replies)
Discussion started by: kumarmani
10 Replies

5. Cybersecurity

File owned by oracle user and dba group need readonly access to other users

Under oracle user file abc.txt was created. Oracle user belong to dba group on UNIX Server. However other non Oracle users which belongs to some other network groups need read only access to this file. Every time when I login as other then oracle user and try to view this file it saying that I... (2 Replies)
Discussion started by: groosha
2 Replies

6. Ubuntu

Create New User with the same group nd privileges of the other user

Hi, Anyone can help me on how to duplicate privileges and group for useroradb01 to userrootdb01. I have currently using "useroradb01" and create a newly user "userrootdb01". I want both in the sames privileges and group. Please see the existing users list below; drwxr-xr-x 53 useroradb01... (0 Replies)
Discussion started by: fspalero
0 Replies

7. Shell Programming and Scripting

need a one liner to grep a group info from /etc/group and use that result to search passwd file

/etc/group tiadm::345:mk789,po312,jo343,ju454,ko453,yx879,iy345,hn453 bin::2:root,daemon sys::3:root,bin,adm adm::4:root,daemon uucp::5:root /etc/passwd mk789:x:234:1::/export/home/dummy:/bin/sh po312:x:234:1::/export/home/dummy:/bin/sh ju454:x:234:1::/export/home/dummy:/bin/sh... (6 Replies)
Discussion started by: chidori
6 Replies

8. UNIX for Advanced & Expert Users

Sudo and edit other user's info.

i did a mistake. :( user1 ]$ vi ~/.bashrc sudo su - user2 now , whenever I try to login to user1 , it will login to user2. How can I resolve this ? :rolleyes: N.B -- I do not have root access. -- I dont know password of user2 -- this is a virtual machine. (1 Reply)
Discussion started by: linuxadmin
1 Replies

9. Red Hat

User is a Part of a Group But Group Details Do Not Show the User

Hi, In the following output you can see the the user "richard" is a member on the team/group "developers": # id richard uid=10247(richard) gid=100361(developers) groups=100361(developers),10053(testers) but in the following details of the said group (developers), the said user... (3 Replies)
Discussion started by: indiansoil
3 Replies

10. UNIX for Dummies Questions & Answers

How to make user groups and edit permissions?

OK guys and gals. I've been working on a debian system for a little bit, in hopes of making it into a system we can use for manifests and other things. I am very new to unix, particularly debian. I would like to make 2 or 3 different groups. 1 would be for me, and other people... (1 Reply)
Discussion started by: samee71
1 Replies
QCT(1)																	    QCT(1)

NAME
qct - Qt Commit Tool SYNOPSIS
qct [VCS] DESCRIPTION
The qct(1) command provides a common GUI commit dialog for many revision control systems across many platforms, including Linux/UNIX, MacOSX, and Microsoft Windows. VERSION CONTROL SYSTEMS
Mercurial [--hg|-h] Qct supports both the simple repository model and the Mercurial Queue patch maintenance model. When MQ patches are applied, qct will present a patch refresh user interface. Consult README.mercurial for more details. Bazaar [--bzr|-b] Bazaar support is complete, but could use some polishing. Qct can run as a bazaar plugin. Consult README.bazaar for more details. Perforce [--p4|-4] Perforce support is complete, if somewhat restrictive. On Windows, you must override P4DIFF with a command line diff tool. Consult README.perforce for more details. CVS [--cvs|-c] CVS support is feature complete, but not well tested. Consult README.cvs for more details. Monotone [--mtn|-m] Monotone support is feature complete, but not well tested. Consult README.monotone for more details. Subversion [--svn|-s] Subversion support is not very well tested at this time, so consider it alpha quality. Consult README.subversion for more details. Git [--cg] Git repositories are only supported via the Cogito front-end interface, which must be installed in order for Qct to work properly. Consult README.git for more details. VCS INTEGRATION
Qct can run as a plugin inside both Mercurial and Bazaar. Please consult the packaged INSTALL file and each plugin's built-in help for more information. SIGN OFF MESSAGES
If you require a sign-off (or other) message to be appended to all of your commit messages, you can specify this message in the Qct preferences dialog. The sign-off message will not show up in the commit message window, but will be automatically appended to your message when passed to the VCS for commit. CHANGE SELECTION
Qct will allow you to select individual changes made to revisioned files, temporarily storing the remaining changes under a .qct/ directory until the commit has been completed. To enable this feature, you must configure a two-way merge application in the Qct preferences dialog. Kompare, meld, and kdiff3 are all known to work correctly in this mode. Any merge application which takes two file-names on the command line and allows them to be merged together can be used. EXTERNAL EDITOR
You can register an external editor with the Qct preferences dialog. Your editor will be presented as a context-menu option for all non-deleted commitable files in the file list. EXTERNAL DIFF
If your VCS supports external diff tools, you may register one of these with the Qct preferences dialog. Your diff tool will be offered in the context menu of all modified files in your file list. The diff tool will be provided with the list of selected files so it must be capable of retrieving the file diffs itself, typically by getting them from your revision control system. FILES
~/.config/vcs/qct This file contains persistent data stored by Qct between invocations. It is not meant to be user modified. BUGS
Probably lots, please send them to be via e-mail when you find them. Patches (or mercurial bundles) are always welcome. Windows has a known limitation of 32Kbytes for it's command line. Since Qct operates directly with the VCS command line tools, it is possible to run into this limit. AUTHOR
Written by Steve Borho <steve@borho.org[1]> RESOURCES
Web Page[2] Source code repository[3] COPYING
Copyright (C) 2006 Steve Borho Free use of this software is granted under the terms of the GNU General Public License (GPL) AUTHOR
Steve Borho <steve@borho.org> Author. NOTES
1. steve@borho.org mailto:steve@borho.org 2. Web Page http://qct.sourceforge.net/ 3. Source code repository http://qct.sourceforge.net/hg/qct 08/22/2011 QCT(1)
All times are GMT -4. The time now is 09:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy