Change uid and group administrator

hi, i want to change server uid and gid, �how i can do this?
(i have an user, and i want to change to root user)
thanks

chown -R might break things! Watch out for symlinks to thigs that user don't own!!!
This is the safer way (and works on paths with spaces):
oldid=100
newid=123
gfind /path[s] -user $oldid -print0 | gxargs -0r chown -h $newid
oldgid=100
newgid=123
gfind /path[s] -group $oldgid -print0 | gxargs -0r chgrp -h $newgid
The -h to ch.. is important to change the owner of symlinks and not what it points to as that may have a different owner (like root).
gfind and gxargs are the Gnu find and xargs found in /opt/sfw/bin
P�l

Similar Messages

  • Change UID and SID

    Hello,
    I am planning to change UID and GID on solaris10, can I change when the system online? or I need shutdown all services after change? AND what should I need take care

    chown -R might break things! Watch out for symlinks to thigs that user don't own!!!
    This is the safer way (and works on paths with spaces):
    oldid=100
    newid=123
    gfind /path[s] -user $oldid -print0 | gxargs -0r chown -h $newid
    oldgid=100
    newgid=123
    gfind /path[s] -group $oldgid -print0 | gxargs -0r chgrp -h $newgid
    The -h to ch.. is important to change the owner of symlinks and not what it points to as that may have a different owner (like root).
    gfind and gxargs are the Gnu find and xargs found in /opt/sfw/bin
    P�l

  • Changing users and groups settings without unlocking

    I recently upgraded to Mountain Lion and have noticed that I can change the settings in preferences for Users and Groups without unlocking.
    Should this be the case?

    I tried what you suggested but there is no change.
    Many Thanks

  • Change User and Group to Nobody

    If I were to change the User and Group (in httpd.conf) to Nobody, what should I do? Is there any other setting that I need to change?

    I'm on AIX5.2. Both user and group nobody are exist.
    There is a note in the httpd.conf file on the user/group setting as below. What does it mean? Thanks.
    # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
    # when the value of (unsigned)Group is above 60000;
    # don't use Group nobody on these systems!

  • IR change filter and group dyamically

    Hi there,
    I have an interactive report, and I want to use different filters and groups based on the user that is logged on, anybody know how I can do this, i.e. set the filters and groups dynamically, thanks... Anil

    Hi,
    maybe this post will help you developing a solution: http://apex-at-work.blogspot.com/2010/03/building-ir-filters-with-ajax-not.html
    You can set at least filters dynamically with AJAX-APEX processes.
    Best regards,
    Tobias

  • Change uid and home directory locations?  - no more netinfo manager?

    greetings,
    just setting up my new MBpro with 10.5... i've discovered netinfo manager is no longer here... searched the discussion forum and have learned a little. i looked into the "directory utility", but don't see how to use it for configuring local user info... (seems to be primarily focused on network services, such as ldap)...
    i keep 2 accounts on my computer - personal account for home use and work account for when i need to use my laptop for work. for my work account i need to set my UID to match that of our servers (suns)... i nfs mount suns, and access servers, etc. without the same UID, i don't have access to my network files when locally mounted... also i keep my home directories on a second partition and need to change the location of the home directory... all of these were relatively straight forward in netinfo manager.... but i have no idea where to access the configuration info that was in netinfo manager...
    is there some kind of additional software i have to install?
    i'd appreciate any suggestions-
    thanks-

    great! thanks!!
    ps - besides the fact that i can get my own unique environments and keep my work life separate from my personal live on my home computer by making separate accounts, the 2nd account always gives me a way to test things and change things for an account without being logged into it... even if i didn't want to make a user account for my job on my personal computer, i'd still keep an alternate account for testing things and as a backdoor to fix problem in my primary account... i've always loved unix since i first started using it in 85... an i'm SO glad that apple made the switch to unix, albeit a little later than was good for them. i think it is undeniably better for the users, the administrators, and even apple... the mac is quite a joy to use these days, IMHO... (-;

  • How to work with Group Administration

    I am working as a System Administration.
    I have knowledge in Windows based environment.
    I am newly got a job, where I have to maintain MAC based servers.
    I don't have knowledge about USER and GROUP Administration.
    Please help me out about this thoroughly and in a simple manner.

    Hi
    Start by reading this:
    http://manuals.info.apple.com/en_US/Mac_OSX_Server_v10.6_Getting_Started.pdf
    Progress onto this:
    http://manuals.info.apple.com/en_US/UserMgmt_v10.6.pdf
    The rest of the Manuals are here:
    http://support.apple.com/manuals/#serversandenterprisesoftware
    In case you were not aware these Forums are User to User only. No-one from Apple is obliged or likely to respond directly to your question(s).
    I would also advise you to enrol in an Approved Apple Server Training Course if that's a possibility in your area? You should also consider using Google.
    HTH?
    Tony

  • How to change default /Users and /Groups to different Volume?

    Users are created in /Volumes/<boot>/Users and groups in /Volumes/<boot>/Groups.
    We need these to be created on a different volume, eg., /Volumes/External/Users, and /Volumes/External/Groups.
    Setup Assistant correctly put user Backups into */Volumes/External/Shared Items/Backups* and also correctly put web services on /Volumes/External/ServiceData -- we want to do the same for Groups and Users.
    Groups are the most critical, as the group needs bulk storage. Users we could leave as is if it can't be done.
    How can this be configured? We've read File Server Admin, Open Directory Admin, and Advanced Server admin from http://www.apple.com/server/macosx/resources/documentation.html without finding an answer.
    Thanks in advance.

    1. Create new folders on the external volume to hold users and groups, but to prevent confusion name them something other than "Users" and "Groups". /Volumes/External/NetUsers and /Volumes/External/NetGroups would be reasonable choices.
    2. Share both of these folders (in Server Admin -> server name in sidebar -> File Sharing -> Volumes & Browse modes -> select each folder -> click Share near the top right).
    3. Enable both folders for automounting on clients (Server Admin -> server name in sidebar -> File Sharing -> Share Points-> select each folder -> Share Point tab under that -> Enable Automount option) with the default options (Directory: /LDAPv3/127.0.0.1, Protocol: AFP, Use for: User home folders and group folders). Be sure to click Save (not just OK in the dialog).
    4. To migrate users, run Workgroup Manager, and change the home location for the users you want to move (select Accounts in the toolbar -> /LDAPv3/127.0.0.1 from the hidden pop-up menu under that -> User icon tab at the left -> select the user(s) you want to change -> Home tab on the right -> select the NetUsers option from the "Where" list). Then, for each user, run this command on the server: "sudo cp -Rp /Users/username /Volumes/External/NetUsers".
    5. Similarly, move Group folders in WGM (Accounts -> /LDAP... -> Groups icon on left -> select groups to move -> Group Folder tab on right -> NetGroups in the list). Then, for each group, run "sudo cp -Rp /Groups/groupname /Volumes/External/NetGroups".
    6. Test to make sure all is working before deleting the old user and group folders from /Users and /Groups (do NOT delete /Users and /Groups themselves, just the individual folders from under them).

  • I changed my wheel group properties to no access at top disk level.  I messed up, how can I change back in single user mode "command s" as I am now in Thailand and not able to access startup disks?

    I messed up, I changed my "Wheel group" properties to No Access ( or something other than the default) at the top level of my startup disk "Macintosh HD".   Now my computer won't start up, I just get the spinning wheel of death.    I also am in Thailand right now, so I cannot go to a Genius at an apple store, nor do I have startup disks available.
    So I was hoping there was a way to change back the properties of my disk (Volume) in single user mode (via Command +s) during startup, i.e. can I do a chmod command on the Macintosh HD listing under the Volume Directory.    Or where do i fix this?   Is it fixable without startup disks, etc...
    THANKS FOR ANY HELP!!!!
    If you could also please let me know you have an answer, I WOULD REALLY APPRECIATE IT!!! 
    thanks so much
    mark
    <Edited by Host>

    Thomas,
    Thanks for the info on command-R, didn't know about that!!!
    Yes I changed the sharing "Wheel Group" permissions on my hard drive via Get Info.    But that's all I did.    And then most of the apps wouldn't respond with anything.    So not knowing I did something stupid, I decided to re-boot, and then nothing but the Wheel of Death at startup.
    I was trying to limit access to my computer on this network, changed my public folder settings, and then I thought why not the whole hard drive, but at that time I had no idea what the "Wheel Group" was... so I shouldn't have touched it, BUT IT DID ...... argggggg....
    I managed to go to an internet cafe & research the problem yesterday.    I used the command +s single mode to get in, and then did the necessary steps to mount the drive so I could make changes.   I basically did this:
    Boot into single-user mode (boot while holding down CMD-S)
    Follow the on-screen instructions to mount the file system as read-write (a fsck command followed by a mount command)
    Type the following: "chmod o+r /" followed by "chmod o+x /"
    Type "exit" to leave single user mode and complete the boot sequence.
    I found it at this link http://forums.macrumors.com/showthread.php?t=416180
    It worked... thank God!!!   Well so far so good.   
    I was going to try my own fix by chmod on the Hard drive listed under Volumes directory, but that doesn't seem to match the info under Get Info Window.    So I just used the fix above.    I probably should now go and do "Disk Utility - repair permissions", however I am a little gun shy right now, so I will probably wait until I am back in the States so I can go to an Apple store if it messes up.   Right now I'm following the "if it ain't broke, don't fix it" MOTTO...
    So Thomas I just wanted to say THANKS for replying so quickly, and I really appreciate your help!!!
    (yes I know I shouldn't have used my email addresses, but I WAS DESPERATE, but that's still no excuse)
    Hopefully maybe this thread will help someone else out in the future....
    Okay, thanks again!
    Mark

  • Employee and Group responsible being overwitten when clicking "Change".

    Hi All,
    I have searched the forums for a solution to a problem I have had but did not get the bottom of it.
    I have done some debugging and managed to sort it and thought I'd share my findings with you.
    Problem:
    You are in the Web interaction centre (CRM 5.0 in my case) and you navigate to a previously saved activity.
    You click the "Change" button and the Employee Responsible and the Group Responsible are changed to the ones for the currently logged on user.
    You want to stop this happenning. In our case we have a call centre who amend activities and we do not want the details for employee and group changing.
    Solution:
    Go to SE18.
    Open BADI CRM_IC_INBOX_BADI.
    Go to an active implementation or create a new one.
    go to method DETERMINE_GROUP_RESPONSIBLE
    Add the following line of code to the method:
    C_SKIP_DEFAULT_LOGIC = 'X'.
    Hope this helps someone.
    Many thanks
    Gary Hawkins

    Thank You Gary. Appreciate it.
    Best Regards,
    Masood Imrani S.

  • Propose or change automatically, Employee Group and Subgroup.

    Dear all, when executing an exit Action, thru transaction PA40, what's the best way to propose by default/change automatically, the employee group/subgroup?
    Example: I want to change the employee group from '1' (Active) to '2' (Inactive), but the fields are disabled for input.
    Do i have to do this thru the enhancement "PBAS001", or is there any way to do this thru configuration?
    Sincerely,
    Hugo Ferreira

    I was searching for something in SDN and got this post.
    Though it's a very late reply, whatever Sreenu has told is correct.
    In the table T529A, you can define the employment status wehther it has to be active, withdrawn or inactive.
    This field is input disabled in the action and the values will be defaulted from the configuration.
    But Changing the employee group and employee subgroup , we can't change. If that is what is required, the values might depend on the configuration.
    And even through some enhancement also we can't change. because, for IT0000 no enhancement are available. Even though the fields are from IT0001, I doubt it can be changed through enhancemnet.
    If you have already achieved it through enhancemnet, please let us know.
    Thanks,
    RSS.

  • AUDIT action (create, delete, privilege escalation, set and change password from users account and group) users and admins in Solaris 10

    Hello.
    in Solaris 10 i need auditing process create, delete, privilege escalation, set and change password and etc... from users account and group.
    I set settings:
    in file syslog.conf:
    *.info;mail.none;cron.none;audit.notice            @IP-Remote-syslog-server-SIEM
    in file   /etc/security/audit_control:
    dir:/var/audit
    flags:lo,ad,ex,cc,am,no,fc,fd
    minfree:20
    naflags:lo
    plugin:name=audit_syslog.so;p_flags=lo,ad,ex,cc,am,no
    in file   /etc/security/audit_user:
    root:lo,ad:no
    Now I see in the logs only the fact of a connection via SSH and run processes on behalf of users. Creation. delete users, change passwords for some reason do not is logged.
    Many users. For each individual write permissions in the file /etc/security/audit_user not possible, it is likely to forget any new user (or there is a possibility in this file one line to describe the audits for all accounts?)
    Where is the mistake?

    You are most likely hitting Bug 15779000 user/role/groupadd/mod/del don't audit their use.
    And the fix is only available in S11.2.
    -- Renaud

  • Problem using Change production and SFC step status with Simultanious group

    Hello,
    We just upgraded to ME 5.2 SP5 patch which was released two days back, the problem with Simultanious group is fixed and SFC gets the correct next step as per defined in the router (Previously there was bug).
    But when we try to use change production and put SFC in simultanious router at some particular operation as que it is getting in que at all operations and really can be started and completed even at the last operation.
    Same is the case with step status if we put it in que at some intermediate operation all operation listed above are becoming in que irrespective of the flow defined in simultanious router.
    Please let me know how to handle this.
    Regards,
    Pushkar Patil

    Hi Pushkar,
    It seems to be a bug. I would suggest opening a ticket on this.
    Regards,
    Alex.

  • I am the the only user and the administrator for my laptop and I have forgotten my password so I can't make any changes or download any programs....

    I am the the only user and the administrator for my laptop and I have forgotten my password so I can't make any changes or download any programs....

    Reset Password using Recovery HD
    Boot into Recovery Partition.
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until you see OS X Utilities window shows up.
    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter key on the keyboard.
    Do not close the Terminal window
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box.
    Enter a new password.
    Reenter the new password for the user.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.

  • Type and Group color doesn't change.

    I'm having a problem with Adobe Illustrator CC 17.1.0 with colors, types and groups.
    If I select a text or a group and try to change its color, the Fill color stays correct a the panel, but the text or the group maintains the old color, like the screenshot below.
    The only way to change color its is selecting all text characters or all group's elements.

    Here they are.
    Thanks for trying to help!

Maybe you are looking for

  • Hp officejet pro 6830 e-all-in-one series

    install & setup my hp officejet pro 6830 e-all-in one printer

  • Delivery date sales order / purchase requisition

    Hello, I am trying to create a sales order. In my case, the sales order has got two lines for schedule lines: -delivery date: 24.03.2009 -delivery date: 06.04.2009. This line is the one confirmed. This is because on the material master record the fie

  • Controller="false" not working in ie8

    I'm putting some quicktime movies on my website and I don't really want the player bar at the bottom showing. Using the code that is generated with the xport for web, 3 entries such as: controller="false" works in Safari, but not in ie8. Haven't trie

  • Firmware Maddness for the Zen Mic

    Is it just me or is this firmware business out of control for the Zen Micro? Having a .0 series and a 2.0 series at the same time is creating way too much confusion! Aren't MP3 players supposed to be replacing portable CD Players and Cassette Players

  • Question regarding recording vocals?

    Hi, I'm considering in purchasing an IMAC real soon. Will Garage Band allow me to record vocals while playing an mp3, wave, cd, etc, from an internal player within the mac? For instance, I currently have a WINDOWS PC which I use winamp to play the au