473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to change my group

I want to change my group from primary group to secondary or viceversa.

I don't have superuser access also.

could anybody please let me know how to do this.
Aug 18 '08 #1
5 20702
Nepomuk
3,112 Expert 2GB
The command you're looking for is usermod. Here's the manpage online: http://linux.die.net/man/8/usermod

So, to make specialGroup your new primary Group, use:
Expand|Select|Wrap|Line Numbers
  1. usermod -g specialGroup sanishr
(or whatever your username on the computer is)

I guess, if you do it for yourself, you shouldn't have to be a superuser. (Not tested.)

Greetings,
Nepomuk
Aug 18 '08 #2
when I am trying to do this it is saying "Permission Denied"
Aug 19 '08 #3
Nepomuk
3,112 Expert 2GB
OK, not so good. But I may have another solution for you.

Check this page, paragraph Switching your default group: newgrp. That should allow you to work as Member of a different group until you exit the newly opened shell via exit.
Do remember however, that you'll only be using the new group as long as you don't exit the newly opened shell!

I hope that helps.

Greetings,
Nepomuk
Aug 19 '08 #4
wbgxx
6
you can do it well and you can do it badly ~!
best wish to you~!
Jan 7 '10 #5
numberwhun
3,509 Expert Mod 2GB
@Nepomuk I hate to say it, but considering this following statement, I don't know if this will work for them either:

"This only works if you are a member of multiple groups otherwise you have no group to switch to."

Unless the OP is already a member of the other group they wish to change to, it doesn't seem to work. I actually just tried this and it failed.

If you are not part of a group, then you will need to contact an admin and get yourself added to the group you need to be a part of.

Regards,

Jeff
Jan 7 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Richard Cornford | last post by:
For the last couple of months I have been trying to get the next round of updates to the FAQ underway and been being thwarted by a heavy workload (the project I am working on has to be finished an...
2
by: innesm | last post by:
Hi, Although I havent been able to find any documentation to confirm it, it looks like any change to a windows local group's membership is only reflected in the group editing UI (and the...
12
by: Arno R | last post by:
Hi there, I just distributed an application in which I (try to) change db.properties depending on CurrentUser() For instance I set the property's AllowBypassKey and AllowBuiltinToolbars to False...
2
by: Corrine | last post by:
Is there a way to cancel a change in an option group? The option group still changes to the option clicked on when clicking on the NO button with the following code in the BeforeUpdate event of the...
6
by: Evgeny Zoldin | last post by:
Hi ALL. I have the configuration: 1. WinXP PRO with MS IIS 5.0 and installed ASP.NET 2. ASP.NET application A configured to authenticate only users from local Users group. I would like to de...
6
by: Jan | last post by:
Hi: I have created a secured database for a client. For various reasons, I don't want the client to have full persmissions for the database; they aren't in the admins group. I have instead tried...
9
by: Brian Hampson | last post by:
I am trying to determine all the groups which the current user has permissions to add a member. Here's my code: foreach (System.DirectoryServices.SearchResult ADSearchres in...
0
by: Brian Mitchell | last post by:
Does anyone know how to programmatically change the Group Policy settings with .NET? (preferably VB) I found the IGroupPolicy object in the Platform SDK but I don't code with C and I have no idea...
0
by: Majid Bhutta | last post by:
Hi Dears! I am using crystal report 10 with C# 2005. I have an issue that i want to change the font of Group Header Text that is visible when we click on Toggle Group Tree button and a tree pane is...
11
tuxalot
by: tuxalot | last post by:
Another quick question for ya... Here's my button code, and I want to see if I can do something different so I don't have to repeat the same code for each of my 14 buttons in my option group: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.