General :: Awk Group 2 Lines ?
Jul 15, 2011
I have a file with n number of lines where every 2 lines are grouped.
So I want to print the items in a line and the next line in a single line.
For example:
I can print the line and the adjacent together and print the required items like this:
But that's not the order I want. How can I get it printed like below:
View 1 Replies
ADVERTISEMENT
Oct 19, 2009
i want secondary users can able to change the files permissions of primary group?user MAC is having www as a primary and httpd as secondary group. But he want to change the file permissions (chmod) httpd group files. Is it possible or not? I think its not possible. If it`s possible then let me know how?
View 3 Replies
View Related
Feb 8, 2011
I have a group (GROUP) with a number of users. I recently added a new user (NEW). NEW is able to read but not write group files, whereas all the other users in the group can read and write to the group files. The permissions for the group files indicate that all members of group should have write permission -rwxrwxr-x
/etc/group indicates that NEW is a member of GROUP
...
GROUP:x:501:GROUP,OLD,OLD2,OLD3,OLD4,....,NEW
[code]....
Don't know if it matters, but both OLD and NEW write to the GROUP files over an internet connection. why NEW can't write to GROUP files? Is there a maximum number of members in a group that I might have exceeded?
View 2 Replies
View Related
Aug 22, 2010
I need to create a group that has the same permissions as the users group. Can I have the new group be a member of the "users" group to inherit its permissions?
View 4 Replies
View Related
Jan 26, 2010
I've come across an unusual requirement for a service in my Ubuntu system.Simply put, I need to find a way to search for all instances of a term in a file, delete lines containing containing that term, and delete four lines below each instance of that term. ither that, or copy the entirety of a file to a new file and skip over all lines containing the term plus four below it.This sounds kinda weird, I know. Without going too far into detail, I either have to change the logfile format for a server I'm running which is a huge pain in the butt, or I can just run a script to edit an HTML report generated from said logs. (Said report is really just for managers to peruse, and I like my log format, so I'm pursuing option 2.)
View 4 Replies
View Related
Jul 19, 2011
How can I create a user group that restricts Internet privileges to only members in the group, then I will assigns certain applications to join the group for access to the Internet.
For example, I want only group net to have access to the Internet. Group net is then connected to:
Code:
So far, I am using the gnome group policy manager that is standard with ubuntu but Its not working. It is possible that im misdirected and that I should use a firewall instead?
View 2 Replies
View Related
May 24, 2010
I have a text file that currently has around 150 000 usernames in it. I need to somehow group them into smaller groups of 1000 and then add that value into the DB. for example user xzy group 1 (hopefully the groups will be digits incrementing)
[Code]....
how to search for 1000 then assign them group 1 and then 1001-1999 to group 2 etc.
View 3 Replies
View Related
May 25, 2011
I've been tasked with fixing a Red Hat system that dies with a kernel panic during the boot stage:
Code:
EXT3-fserror (dev sda1): ext3_check_descriptors: Inode bitmap for group 4 not in group (block 67239937)!
EXT3-fs: group descriptors corrupted!
mount: error mounting /dev/root on /sysroot as ext3: Invalid argument
I can boot into a Rescue CD, but I'm a bit out of my element because I don't use EXT3 myself, and I've never had to repair a corrupted file system before.
View 3 Replies
View Related
Apr 22, 2011
I have been experiencing a problem where the screen loads and after initial first few lines breaks up into multiple repetitions of lines. Reloading helps but has to be repeated when pageing down. Mail is no problem; it is supplied by my network provider. OS is openSUSE 11.2 which I update when advised. Below is a sample from the error console:
[Code]...
View 1 Replies
View Related
May 31, 2011
I've just installed Kubuntu 11.04, switched on wobbly windows effect. It runs very smooth on my Nvidia GeForce 7600 GS with dual screen twinview turned on. However, I get these lines when I drag/move the window upwards - see screenshot:
View 6 Replies
View Related
Nov 24, 2009
How do you remove parts of strings using python? Such as, if I have something like:
Code:
erme1 sdifskenklsd
erme2 sdfjksliel
[code]....
View 3 Replies
View Related
Oct 26, 2009
I have this massive table file with some data in it and I want to replace some lines that are wrong with the correct ones that are in another table file of the same format. The wrong lines are not all together in a block but randomly distributed so I need to make a loop checking if the line is in the other file and if it is, replace it. I want to try and do it with sed or awk but I don't really know how to....
View 12 Replies
View Related
Apr 17, 2010
Mount of filesystem failed. A maintenance shell will now be started CONTROL-D will terminate this shell and retry. groups: cannot find name for group ID 0 root@Sergioc-desktop:"#
View 2 Replies
View Related
May 19, 2010
I have a number of users, categorised into various groups. I would like one of those groups ("developers") to be in the wheel group as well. I don't want to just copy the people from the developers group into wheel, because then when that group changes I'll have to change it in two places. Is there a way to specify that anyone in developers is in wheel, and have that be dynamic?
View 7 Replies
View Related
Feb 8, 2011
I make a group a member of another group?
I am running Samba and want to include all groups as members of the Domain Users group so that I don't need to add this for every user?
View 3 Replies
View Related
Apr 20, 2010
A bit of an oddity that I've recently run into with my storage folder in my system; it's a newly installed drive that I've set to mount at /storage. When I first tried to use it, programs that I used that attempted to write to it tossed Access Denied errors at me in their own way. Checking the permissions (at the Terminal, ls -l / | grep storage) showed that /storage was set to 'rwxrwxr--'--Owner and Group were given full read/write/execute, but Others could only read. However, my logon to my system is a member of group root. Why, then, with the above bits set, would I not be able to write to it? Changing Others permissions to rwx (and presumably rw would have worked out for me since I don't leave anything executable there) allowed me to write to it, but I don't understand why that would have been necessary. So far as I'm aware, the prior drive that was in my system--mounted at the same location--did not need this treatment.
View 7 Replies
View Related
May 3, 2010
Is it possible to allow a group/user to execute a command, where one of the parameters of the command is a group as well? example that does not work as intended:
Code:
Cmnd_alias SU=/bin/su -l %group1 This example works sortof, it treats the "%group1" literally. I know I can list out the "/bin/su -l <eachuser>", but as you can imagine that is impractical. In this example, I want people in group2(not shown for brevity sake) to be able to su to someone in group1
View 13 Replies
View Related
Jan 9, 2010
how set the group password? what is the use of the group password?
View 2 Replies
View Related
Mar 17, 2010
I have four users in my red hat linux 9. I want that all these four users should add in a group i.e "Marketing". please guide me that using terminal which command may i write so that the users should added in the group.I does't want to use GUI interface to do it.
View 14 Replies
View Related
Feb 14, 2011
I want to add a user "smith" into marketing group using terminal.Please guide me that how can I do it ?
View 11 Replies
View Related
Mar 11, 2010
How can I set quota on group plz send me detail with command.I am still facing problem to set the quota. I've tried many option plz send all steps to set quota from start to end.
View 3 Replies
View Related
Apr 5, 2010
Can we just put all the processes in one group and kill that group? Is there any other way to do this?
View 3 Replies
View Related
May 14, 2010
How can I list directories with ls and sort them by their owner and group?
View 1 Replies
View Related
Feb 18, 2011
How to kill a process initiated by another user, who is in same group as me?
View 1 Replies
View Related
Jun 20, 2011
How to get all group list of particular user in linux to whom which he is member.
View 3 Replies
View Related
Jul 4, 2011
I'm seeing on my Fedora 15 box. I want to add the superuser to a group called, say, thisgroup.thisgroup is absent. Surprisingly, when I thought of editing /etc/group, root was present there!Anyone on why groups didn't show my new addition?
View 3 Replies
View Related
Jul 11, 2011
I'm using nfs to mount the folder /mirror from a server onto a node.
This works, except on the node the user and group are displayed as "4294967294".
On the server: ls -al ./ displays
-rw-r--r-- 1 cu cu 0 2011-07-11 15:08 test1
-rw-r--r-- 1 cu cu 0 2011-07-11 15:08 test2
whereas on the node
-rw-r--r-- 1 4294967294 4294967294 0 2011-07-11 15:08 test1
-rw-r--r-- 1 4294967294 4294967294 0 2011-07-11 15:08 test2
I have usermod and groupmod the username cu to have the same numbers on the node.
On the server: id displays
uid=1021(cu) gid=1007(cu) groups=1007(cu),109(admin)
on the node
uid=1021(cu) gid=1007(cu) groups=1007(cu)
I'm stumpeed as to what the problem could be.
I should perhaps add that the home directory is /mirror/cu (so that the users share the same account when mounted). Not sure if thats relevent though...
My /etc/exports file (on the server) looks like this
/mirror *(rw,sync)
and I do the mount (on the node) with
sudo mount server:/mirror /mirror
View 1 Replies
View Related
Jan 27, 2011
I have a set of files that have a group ID number where no group exists in the system with that number.
I want to recursively read the group IDs of all (including hidden) files in the current and sub-dirs, test each file's group ID, and if it equals the search GID number, I want to execute a chgrp command on that file.
Anyone have an admin script already made for this task?
View 5 Replies
View Related
Mar 16, 2010
I am using Centos 5.4 and I changed the group on /dev/lp0 to group from root. After I do this my program printing directly to /dev/lp0 works fine. But when I shutdown and reboot the system the group on /dev/lp0 has changed back to lp. Does anyone know how to keep the group changed to group after a reboot.
View 3 Replies
View Related
May 27, 2010
Can I assign ownership of a particular file to everybody of a group?If the file had rwxrw-r-- permissions, will every member of the local-group have owner access privileges (rwx) to this flie now?
View 8 Replies
View Related