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
kreg(8) 						      System Manager's Manual							   kreg(8)

NAME
kreg - Maintains the system file that registers kernel layered products SYNOPSIS
/sbin/kreg -d subset [-c NAME] | -l vendor subset path [-c NAME] OPTIONS
Causes the specified layered product to be loaded or deleted from the NAME.list file for the given name in addition to the /usr/sys/conf/.product.list file. Note that the NAME parameter is case sensitive and must exactly match the NAME prefix for the desired NAME.list file. Deletes the entry for the specified layered product when you remove it from the system. Loads the data that controls how to include the layered product in the kernel build process. DESCRIPTION
The kreg command maintains the /usr/sys/conf/.product.list system file, which registers static kernel layered products. The kreg command creates the file if it does not exist. The file enables system utilities or user supplied commands to locate the kernel parts of a layered product, and it provides information about layered products. The kernel tools use the /usr/sys/conf/.product.list file to build a layered product into the kernel. You can use the file to register a static kernel layered product that has been loaded into the system. The file also can be used by the layered product's Software Control Program (SCP), which is called by the setld command. You copy the /usr/sys/conf/.product.list file into the file that is used to extend the kernel configuration files and that has the follow- ing syntax: /usr/sys/conf/NAME.list The NAME variable specifies the system name that also is used in the system configuration file that has the following syntax: /usr/sys/conf/NAME The doconfig command also will copy the /usr/sys/conf/.product.list file. You can use the -c option to load or delete your layered product into a specific NAME.list file as well as the file. This is useful if you want to load your layered product into a specific NAME.list file without requiring the user to either copy the entire file to the NAME.list file or to manually edit the NAME.list file. The kreg command must be invoked from the root (/) directory. The command can be used only for subsets that are loaded by using the setld command. Also, you must be superuser to use the kreg command. FILES
Contains kernel layered product information. Used to extend the kernel configuration files. SEE ALSO
Commands: doconfig(8), setld(8) System Administration kreg(8)
All times are GMT -4. The time now is 04:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy