Sponsored Content
Top Forums Shell Programming and Scripting Change the default group of a user Post 302757843 by Anupam_Halder on Friday 18th of January 2013 05:38:36 AM
Old 01-18-2013
uname -a returning this result

Code:
Linux ***************** 2.6.18-238.12.1.el5 #1 SMP Sat
May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux


Hostname removed. Also usermod not working. And I don't have the root privilege.
 

10 More Discussions You Might Find Interesting

1. Solaris

Change Group

I need to change group for a file elektro.log currently the owner is buddy and group is assigned as other i need to change the group to freinds I issued this command chgrp freinds elektro.log but i encounetered error like "....not owner" do i need to su as root to perform this action. (1 Reply)
Discussion started by: vilves
1 Replies

2. UNIX for Advanced & Expert Users

Change Group

Hi... -bash-3.00$ id -a uid=1004(oracle) gid=101(oinstall) groups=101(oinstall),100(dba) How to change gid from oinstall group to dba group?? (6 Replies)
Discussion started by: adzuanamir
6 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. UNIX for Dummies Questions & Answers

AIX user ID and group ID change

Hello AIX gurus, I have a requirement where I have to change user ID of user "myuser" from 100 to 200 and also the group ID of "mygroup" from 2 to 3. Please note that "myuser" has "mygroup" as it's primary group. What steps do I need to follow for this and in what order? Also can you please... (2 Replies)
Discussion started by: sacguy08
2 Replies

5. UNIX for Dummies Questions & Answers

How to change Default Shell for any user?

Hi, I am new for solaris... how can we change default shell for any user and how to check that which shall currently we are in...... (1 Reply)
Discussion started by: lalit21984
1 Replies

6. UNIX for Advanced & Expert Users

How to change default group?

Hi frnds, I would like to change my default group. I tried using newgrp, but it will change the group in that xterm only. If i open a new xterm that setting is gone. Also i tried by putting newgrp <my_grp> into the file .cshrc which will be run during startup. Eventhough its working, it is... (5 Replies)
Discussion started by: appualex
5 Replies

7. 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

8. Shell Programming and Scripting

Change default shell of a specific user with awk

I would like to replicate the functionality of chsh (or passwd -e) by awk. This is what I got so far, but I think there should be an easier way to search and replace field $7 only for lines beginning with user_name: awk -v user_name="$user_name" -v new_shell="$new_shell" -F: '$1 == user_name {... (2 Replies)
Discussion started by: nomad84
2 Replies

9. Linux

Default user:group permissions while creating files and directories

Hi, I am working on setup a environment where only a specific user can upload the builds on htdocs of apache. Now i want that a specific user can copy the builds on htdocs folder. I created a group "deploy" and assign user1 and user2 to this group. On Apache side i mentioned User=deploy... (3 Replies)
Discussion started by: sunnysthakur
3 Replies

10. 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
FEBOOTSTRAP-SUPERMIN-HELPER(8)				      Virtualization Support				    FEBOOTSTRAP-SUPERMIN-HELPER(8)

NAME
febootstrap-supermin-helper - Reconstruct initramfs from supermin appliance. SYNOPSIS
febootstrap-supermin-helper supermin.img hostfiles.txt host_cpu kernel initrd febootstrap-supermin-helper input [...] host_cpu kernel initrd febootstrap-supermin-helper -f ext2 input [...] host_cpu kernel initrd appliance febootstrap-supermin-helper -f checksum input [...] host_cpu DESCRIPTION
febootstrap-supermin-helper reconstructs a bootable kernel and initramfs from a supermin appliance. First you should be familiar with febootstrap(8). PARAMETERS
Of the required parameters, the first few are input files, and the last two or three are output files. "supermin.img" and "hostfiles.txt" are the input files which describe the supermin appliance. (You can also use a directory name here which is searched for files). "host_cpu" should be the host CPU, eg. "x86_64" or "i686". "kernel", "initrd" and "appliance" are the temporary output files that this script produces. These output files are meant to be used just for booting the appliance, and should be deleted straight afterwards. The extra "appliance" parameter is only required when the format is "ext2". None of these parameters are needed for the checksum output "-f checksum". OPTIONS
-f fmt --format fmt Select the output format for the appliance. Possible formats are: cpio A Linux initramfs. This is the default. In this case you have to supply names for the "kernel" and "initrd", where the "initrd" is the appliance. ext2 An ext2 filesystem. In this case you have to supply names for the "kernel", a small "initrd" which is used just to locate the appliance, and the "appliance" (the ext2 filesystem). checksum Output a checksum. This prints a checksum which only changes when one of the input files changes. You can use this in order to cache the output of a previous run of this program: computing the checksum is much quicker than building an appliance, and you only need to invalidate the cache (and consequently rebuild the appliance) when the checksum changes. Note that the host_cpu and the UID of the current user are included in the checksum. -k file --kmods file If this option is specified, then "file" should be a list of wildcards matching kernel module names, eg: virtio*.ko scsi*.ko piix.ko In this case, only kernel modules matching those wildcards will be included in the output appliance. Note: You must resolve any dependencies yourself as this does not pull in dependent modules automatically. If this option is not specified, then every kernel module from the host will be included. This is safer, but can produce rather large appliances which need a lot more memory to boot. -u user --user user -g group --group group Run febootstrap-supermin-helper as an alternate user and/or group. "user" and "group" can be specified as either a name, which will be resolved using the system name service, or a uid/gid. Use of these options requires root privileges. Use of these options is required if running febootstrap-supermin-helper as root with the effective uid/gid set to non-root. Bash will reset the effective uid/gid to the real uid/gid when invoked. As febootstrap-supermin-helper uses bash in parts, this will result in the creation of an appliance with a mixture of ownerships. SPEED
In libguestfs, on a mid-range Intel-based PC, we reconstruct the initramfs using this script in around 1/5th of a second (assuming a "hot cache" - it's rather slower when run the first time on a cold cache). Some tips to improve performance: o Use a kernel module whitelist (the "--kmods" option), and only list the kernel modules you really need. o Minimize the appliance, removing as much extraneous junk as possible. ENVIRONMENT VARIABLES
FEBOOTSTRAP_KERNEL If this environment variable is set, then automatic selection of the kernel is bypassed and this kernel is used. The environment variable should point to a kernel file, eg. "/boot/vmlinuz-3.0.x86_64" The corresponding module path is guessed from the kernel name, but you can override that by setting "FEBOOTSTRAP_MODULES". FEBOOTSTRAP_MODULES If "FEBOOTSTRAP_KERNEL" and "FEBOOTSTRAP_MODULES" are both set, then automatic selection of the kernel is bypassed and the kernel and module path are set to these values. The environment variable should point to a module directory, eg. "/lib/modules/3.0.x86_64/" This has no effect if "FEBOOTSTRAP_KERNEL" is not set. SEE ALSO
febootstrap(8). AUTHORS
Richard W.M. Jones <rjones @ redhat . com> COPYRIGHT
(C) Copyright 2009-2011 Red Hat Inc., <http://people.redhat.com/~rjones/febootstrap>. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. febootstrap-3.10 2011-09-14 FEBOOTSTRAP-SUPERMIN-HELPER(8)
All times are GMT -4. The time now is 06:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy