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
DEBCOMMIT(1)															      DEBCOMMIT(1)

NAME
debcommit - commit changes to a package SYNOPSIS
debcommit [--release] [--release-use-changelog] [--message=text] [--noact] [--diff] [--confirm] [--edit] [--changelog=path] [--all | files to commit] DESCRIPTION
debcommit generates a commit message based on new text in debian/changelog, and commits the change to a package's repository. It must be run in a working copy for the package. Supported version control systems are: cvs, git, hg (mercurial), svk, svn (Subversion), baz, bzr, tla (arch), darcs. OPTIONS
-c, --changelog path Specify an alternate location for the changelog. By default debian/changelog is used. -r, --release Commit a release of the package. The version number is determined from debian/changelog, and is used to tag the package in the repository. Note that svn/svk tagging conventions vary, so debcommit uses svnpath(1) to determine where the tag should be placed in the repository. -R, --release-use-changelog When used in conjunction with --release, if there are uncommited changes to the changelog then derive the commit message from those changes rather than using the default message. -m text, --message text Specify a commit message to use. Useful if the program cannot determine a commit message on its own based on debian/changelog, or if you want to override the default message. -n, --noact Do not actually do anything, but do print the commands that would be run. -d, --diff Instead of committing, do print the diff of what would have been committed if this option were not given. A typical usage scenario of this option is the generation of patches against the current working copy (e.g. when you don't have commit access right). -C, --confirm Display the generated commit message and ask for confirmation before committing it. It is also possible to edit the message at this stage; in this case, the confirmation prompt will be re-displayed after the editing has been performed. -e, --edit Edit the generated commit message in your favorite editor before committing it. -a, --all Commit all files. This is the default operation when using a VCS other than git. files to commit Specify which files to commit (debian/changelog is added to the list automatically.) -s, --strip-message, --no-strip-message If this option is set and the commit message has been derived from the changelog, the characters "* " will be stripped from the beginning of the message. This option is set by default and ignored if more than one line of the message begins with "[*+-] ". --sign-tags, --no-sign-tags If this option is set, then tags that debcommit creates will be signed using gnupg. Currently this is only supported by git. CONFIGURATION VARIABLES
The two configuration files /etc/devscripts.conf and ~/.devscripts are sourced by a shell in that order to set configuration variables. Command line options can be used to override configuration file settings. Environment variable settings are ignored for this purpose. The currently recognised variables are: DEBCOMMIT_STRIP_MESSAGE If this is set to no, then it is the same as the --no-strip-message command line parameter being used. The default is yes. DEBCOMMIT_SIGN_TAGS If this is set to yes, then it is the same as the --sign-tags command line parameter being used. The default is no. DEBCOMMIT_RELEASE_USE_CHANGELOG If this is set to yes, then it is the same as the --release-use-changelog command line parameter being used. The default is no. DEBSIGN_KEYID This is the key id used for signing tags. If not set, a default will be chosen by the revision control system. VCS SPECIFIC FEATURES
tla / baz If the commit message contains more than 72 characters, a summary will be created containing as many full words from the message as will fit within 72 characters, followed by an ellipsis. Each of the features described below is applicable only if the commit message has been automatically determined from the changelog. git If only a single change is detected in the changelog, debcommit will unfold it to a single line and behave as if --strip-message was used. Otherwise, the first change will be unfolded and stripped to form a summary line and a commit message formed using the summary line followed by a blank line and the changes as extracted from the changelog. debcommit will then spawn an editor so that the message may be fine-tuned before committing. hg / darcs The first change detected in the changelog will be unfolded to form a single line summary. If multiple changes were detected then an editor will be spawned to allow the message to be fine-tuned. bzr If the changelog entry used for the commit message closes any bugs then --fixes options to "bzr commit" will be generated to associate the revision and the bugs. LICENSE
This code is copyright by Joey Hess <joeyh@debian.org>, all rights reserved. This program comes with ABSOLUTELY NO WARRANTY. You are free to redistribute this code under the terms of the GNU General Public License, version 2 or later. AUTHOR
Joey Hess <joeyh@debian.org> SEE ALSO
svnpath(1). Debian Utilities 2013-12-23 DEBCOMMIT(1)
All times are GMT -4. The time now is 04:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy