GID in UNIX

Hello
We got 3 boxes which as HP-UNIX os,
the task is that we need to change GID from 104 to 351 for the WL10 group,
please let me know what is the process of changing it & things necessary before changing and what is the restore option if thins dont work, and we also have running WLS10.3 on all the 3 Dev environments.
Please help me.It urgent!

Hi,
Zillions of documents are available over net to use usermod command. Please refer them. (eg: http://www.computerhope.com/unix/usermod.htm)
If you dont want to use it, u can modify /etc/password file as will to change the group.
You will require admin rights to do this.

Similar Messages

  • Sharing with Samba

    Hey all !
    I've been for the past two days trying to configure my smb.conf so it shares files over network.
    I've read docs, wikis, how-tos, theads et cetera but I just can't make the whole thing work.
    I want Movies and Musics to be read only. This works fine.
    The problem is Repo. I want it to be read/write. I've chmoded /media/Elements/Repo 777 but it still not works. What I get is read only access.
    Here's my actual smb.conf so you can help me figure out what's wrong with it :
    # This is the main Samba configuration file. You should read the
    # smb.conf(5) manual page in order to understand the options listed
    # here. Samba has a huge number of configurable options (perhaps too
    # many!) most of which are not shown in this example
    # For a step to step guide on installing, configuring and using samba,
    # read the Samba-HOWTO-Collection. This may be obtained from:
    # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
    # Many working examples of smb.conf files can be found in the
    # Samba-Guide which is generated daily and can be downloaded from:
    # http://www.samba.org/samba/docs/Samba-Guide.pdf
    # Any line which starts with a ; (semi-colon) or a # (hash)
    # is a comment and is ignored. In this example we will use a #
    # for commentry and a ; for parts of the config file that you
    # may wish to enable
    # NOTE: Whenever you modify this file you should run the command "testparm"
    # to check that you have not made any basic syntactic errors.
    #======================= Global Settings =====================================
    [global]
    # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
    workgroup = WORKGROUP
    # server string is the equivalent of the NT Description field
    server string = Samba Server
    # Security mode. Defines in which mode Samba will operate. Possible
    # values are share, user, server, domain and ads. Most people will want
    # user level security. See the Samba-HOWTO-Collection for details.
    security = share
    # This option is important for security. It allows you to restrict
    # connections to machines which are on your local network. The
    # following example restricts access to two C class networks and
    # the "loopback" interface. For more examples of the syntax see
    # the smb.conf man page
    ; hosts allow = 192.168.1. 192.168.2. 127.
    # If you want to automatically load your printer list rather
    # than setting them up individually then you'll need this
    load printers = yes
    # you may wish to override the location of the printcap file
    ; printcap name = /etc/printcap
    # on SystemV system setting printcap name to lpstat should allow
    # you to automatically obtain a printer list from the SystemV spool
    # system
    ; printcap name = lpstat
    # It should not be necessary to specify the print system type unless
    # it is non-standard. Currently supported print systems include:
    # bsd, cups, sysv, plp, lprng, aix, hpux, qnx
    ; printing = cups
    # Uncomment this if you want a guest account, you must add this to /etc/passwd
    # otherwise the user "nobody" is used
    ; guest account = nobody
    # this tells Samba to use a separate log file for each machine
    # that connects
    log file = /var/log/samba/%m.log
    # Put a capping on the size of the log files (in Kb).
    max log size = 50
    # Use password server option only with security = server
    # The argument list may include:
    # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
    # or to auto-locate the domain controller/s
    # password server = *
    ; password server = <NT-Server-Name>
    # Use the realm option only with security = ads
    # Specifies the Active Directory realm the host is part of
    ; realm = MY_REALM
    # Backend to store user information in. New installations should
    # use either tdbsam or ldapsam. smbpasswd is available for backwards
    # compatibility. tdbsam requires no further configuration.
    ; passdb backend = tdbsam
    # Using the following line enables you to customise your configuration
    # on a per machine basis. The %m gets replaced with the netbios name
    # of the machine that is connecting.
    # Note: Consider carefully the location in the configuration file of
    # this line. The included file is read at that point.
    ; include = /usr/local/samba/lib/smb.conf.%m
    # Configure Samba to use multiple interfaces
    # If you have multiple network interfaces then you must list them
    # here. See the man page for details.
    ; interfaces = 192.168.12.2/24 192.168.13.2/24
    # Browser Control Options:
    # set local master to no if you don't want Samba to become a master
    # browser on your network. Otherwise the normal election rules apply
    ; local master = no
    # OS Level determines the precedence of this server in master browser
    # elections. The default value should be reasonable
    ; os level = 33
    # Domain Master specifies Samba to be the Domain Master Browser. This
    # allows Samba to collate browse lists between subnets. Don't use this
    # if you already have a Windows NT domain controller doing this job
    ; domain master = yes
    # Preferred Master causes Samba to force a local browser election on startup
    # and gives it a slightly higher chance of winning the election
    ; preferred master = yes
    # Enable this if you want Samba to be a domain logon server for
    # Windows95 workstations.
    ; domain logons = yes
    # if you enable domain logons then you may want a per-machine or
    # per user logon script
    # run a specific logon batch file per workstation (machine)
    ; logon script = %m.bat
    # run a specific logon batch file per username
    ; logon script = %U.bat
    # Where to store roving profiles (only for Win95 and WinNT)
    # %L substitutes for this servers netbios name, %U is username
    # You must uncomment the [Profiles] share below
    ; logon path = \\%L\Profiles\%U
    # Windows Internet Name Serving Support Section:
    # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
    ; wins support = yes
    # WINS Server - Tells the NMBD components of Samba to be a WINS Client
    # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
    ; wins server = w.x.y.z
    # WINS Proxy - Tells Samba to answer name resolution queries on
    # behalf of a non WINS capable client, for this to work there must be
    # at least one WINS Server on the network. The default is NO.
    ; wins proxy = yes
    # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
    # via DNS nslookups. The default is NO.
    dns proxy = no
    restrict anonymous = no
    domain master = no
    logon home = \\%25N\%25U
    logon path = \\%25N\%25U\profile
    # Un-comment the following and create the netlogon directory for Domain Logons
    ; [netlogon]
    ; comment = Network Logon Service
    ; path = /usr/local/samba/lib/netlogon
    ; guest ok = yes
    ; writable = no
    ; share modes = no
    # Un-comment the following to provide a specific roving profile share
    # the default is to use the user's home directory
    ;[Profiles]
    ; path = /usr/local/samba/profiles
    ; browseable = no
    ; guest ok = yes
    # NOTE: If you have a BSD-style print system there is no need to
    # specifically define each individual printer
    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    # Set public = yes to allow user 'guest account' to print
    guest ok = no
    printable = yes
    [Movies]
    path = /media/Elements/Videos/Movies
    guest ok = yes
    [Music]
    path = /media/Elements/Sounds/Music
    guest ok = yes
    [Repo]
    path = /media/Elements/Repo
    guest ok = yes
    read only = no
    Any idea ?
    Thank for reading !
    Sebastian
    Last edited by spkag (2010-07-23 15:55:35)

    Thanks to both of you, but none seems to work.
    I've tried the different tips and even put them together.
    This is what it looks like at the moment :
    [global]
    # Browsing / Identification #
    netbios name = ARCH-PC
    server string = %h Server (Samba, ArchLinux)
    # Authentication #
    security = user
    encrypt passwords = true
    map to guest = bad user
    guest account = pcguest
    passdb backend = tdbsam
    obey pam restrictions = yes
    invalid users = root
    # Public Share. Mount this on a Unix client with the following.
    # sudo mount -t smbfs -o username=[username],password=[password],\
    # rw,uid=[your Unix user],gid=[your Unix group] \
    # //[netbios or ip of server]/private /path/to/mount/point
    # Optionally use a credentials file and credentials=/path/to/credentials (see below)
    [Movies]
    comment = Movies
    path = /media/Elements/Videos/Movies/
    guest ok = yes
    [Music]
    comment = Music
    path = /media/Elements/Sounds/Music/
    guest ok = yes
    # Public Share. Mount this on a Unix client with the following.
    # sudo mount -t smbfs -o username=,password=,\
    # rw,uid=[your Unix user],gid=[your Unix group] \
    # //[netbios or ip of server]/public /path/to/mount/point
    [Repo]
    comment = Repo
    path = /media/Elements/Repo/
    read only = no
    create mask = 0777
    directory mask = 0777
    writelist=guest
    guest only = no
    guest ok = yes
    All the three folders are in ro. Can't put Repo in rw...
    Last edited by spkag (2010-07-24 13:54:26)

  • Windows Explorer misreads large-file .zip archives

       I just spent about 90 minutes trying to report this problem through
    the normal support channels with no useful result, so, in desperation,
    I'm trying here, in the hope that someone can direct this report to some
    useful place.
       There appears to be a bug in the .zip archive reader used by Windows
    Explorer in Windows 7 (and up, most likely).
       An Info-ZIP Zip user recently reported a problem with an archive
    created using our Zip program.  The archive was valid, but it contained
    a file which was larger than 4GiB.  The complaint was that Windows
    Explorer displayed (and, apparently believed) an absurdly large size
    value for this large-file archive member.  We have since reproduced the
    problem.
       The original .zip archive format includes uncompressed and compressed
    sizes for archive members (files), and these sizes were stored in 32-bit
    fields.  This caused problems for files which are larger than 4GiB (or,
    on some system types, where signed size values were used, 2GiB).  The
    solution to this fundamental limitation was to extend the .zip archive
    format to allow storage of 64-bit member sizes, when necessary.  (PKWARE
    identifies this format extension as "Zip64".)
       The .zip archive format includes a mechanism, the "Extra Field", for
    storing various kinds of metadata which had no place in the normal
    archive file headers.  Examples include OS-specific file-attribute data,
    such as Finder info and extended attributes for Apple Macintosh; record
    format, record size, and record type data for VMS/OpenVMS; universal
    file times and/or UID/GID for UNIX(-like) systems; and so on.  The Extra
    Field is where the 64-bit member sizes are stored, when the fixed 32-bit
    size fields are too small.
       An Extra Field has a structure which allows multiple types of extra
    data to be included.  It comprises one or more "Extra Blocks", each of
    which has the following structure:
           Size (bytes) | Description
          --------------+------------
                2       | Type code
                2       | Number of data bytes to follow
            (variable)  | Extra block data
       The problem with the .zip archive reader used by Windows Explorer is
    that it appears to expect the Extra Block which includes the 64-bit
    member sizes (type code = 0x0001) to be the first (or only) Extra Block
    in the Extra Field.  If some other Extra Block appears at the start of
    the Extra Field, then its (non-size) data are being incorrectly
    interpreted as the 64-bit sizes, while the actual 64-bit size data,
    further along in the Extra Field, are ignored.
       Perhaps the .zip archive _writer_ used by Windows Explorer always
    places the Extra Block with the 64-bit sizes in this special location,
    but the .zip specification does not demand any particular order or
    placement of Extra Blocks in the Extra Field, and other programs
    (Info-ZIP Zip, for example) should not be expected to abide by this
    artificial restriction.  For details, see section "4.5 Extensible data
    fields" in the PKWARE APPNOTE:
          http://www.pkware.com/documents/casestudies/APPNOTE.TXT
       A .zip archive reader is expected to consider the Extra Block type
    codes, and interpret accordingly the data which follow.  In particular,
    it's not sufficient to trust that any particular Extra Block will be the
    first one in the Extra Field.  It's generally safe to ignore any Extra
    Block whose type code is not recognized, but it's crucial to scan the
    Extra Field, identify each Extra Block, and handle it according to its
    type.
       Here are some relatively small (about 14MiB each) test archives which
    illustrate the problem:
          http://antinode.info/ftp/info-zip/ms_zip64/test_4g.zip
          http://antinode.info/ftp/info-zip/ms_zip64/test_4g_V.zip
          http://antinode.info/ftp/info-zip/ms_zip64/test_4g_W.zip
       Correct info, from UnZip 6.00 ("unzip -lv"):
    Archive:  test_4g.zip
     Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
    4362076160  Defl:X 14800839 100% 05-01-2014 15:33 6d8d2ece  test_4g.txt
    Archive:  test_4g_V.zip
     Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
    4362076160  Defl:X 14800839 100% 05-01-2014 15:33 6d8d2ece  test_4g.txt
    Archive:  test_4g_W.zip
     Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
    4362076160  Defl:X 14800839 100% 05-01-2014 15:33 6d8d2ece  test_4g.txt
    (In these reports, "Length" is the uncompressed size; "Size" is the
    compressed size.)
       Incorrect info, from (Windows 7) Windows Explorer:
    Archive        Name          Compressed size   Size
    test_4g.zip    test_4g.txt         14,454 KB   562,951,376,907,238 KB
    test_4g_V.zip  test_4g.txt         14,454 KB   8,796,110,221,518 KB
    test_4g_W.zip  test_4g.txt         14,454 KB   1,464,940,363,777 KB
       Faced with these unrealistic sizes, Windows Explorer refuses to
    extract the member file, for lack of (petabytes of) free disk space.
       The archive test_4g.zip has the following Extra Blocks: universal
    time (type = 0x5455) and 64-bit sizes (type = 0x0001).  test_4g_V.zip
    has: PWWARE VMS (type = 0x000c) and 64-bit sizes (type = 0x0001).
    test_4g_W.zip has: NT security descriptor (type = 0x4453), universal
    time (type = 0x5455), and 64-bit sizes (type = 0x0001).  Obviously,
    Info-ZIP UnZip has no trouble correctly finding the 64-bit size info in
    these archives, but Windows Explorer is clearly confused.  (Note that
    "1,464,940,363,777 KB" translates to 0x0005545500000400 (bytes), and
    "0x00055455" looks exactly like the size, "0x0005" and the type code
    "0x5455" for a "UT" universal time Extra Block, which was present in
    that archive.  This is consistent with the hypothesis that the wrong
    data in the Extra Field are being interpreted as the 64-bit size data.)
       Without being able to see the source code involved here, it's hard to
    know exactly what it's doing wrong, but it does appear that the .zip
    reader used by Windows Explorer is using a very (too) simple-minded
    method to extract 64-bit size data from the Extra Field, causing it to
    get bad data from a properly formed archive.
       I suspect that the engineer involved will have little trouble finding
    and fixing the code which parses an Extra Field to extract the 64-bit
    sizes correctly, but if anyone has any questions, we'd be happy to help.
       For the Info-ZIP (http://info-zip.org/) team,
       Steven Schweda

    > We can't get the source (info-zip) program for test.
       I don't know why you would need to, but yes, you can:
          http://www.info-zip.org/
          ftp://ftp.info-zip.org/pub/infozip/src/
    You can also get pre-built executables for Windows:
          ftp://ftp.info-zip.org/pub/infozip/win32/unz600xn.exe
          ftp://ftp.info-zip.org/pub/infozip/win32/zip300xn.zip
    > In addition, since other zip application runs correctly. Since it should
    > be your software itself issue.
       You seem to misunderstand the situation.  The facts are these:
       1.  For your convenience, I've provided three test archives, each of
    which includes a file larger than 4GiB.  These archives are valid.
       2.  Info-ZIP UnZip (version 6.00 or newer) can process these archives
    correctly.  This is consistent with the fact that these archives are
    valid.
       3.  Programs from other vendors can process these archives correctly.
    I've supplied a screenshot showing one of them (7-Zip) doing so, as you
    requested.  This is consistent with the fact that these archives are
    valid.
       4.  Windows Explorer (on Windows 7) cannot process these archives
    correctly, apparently because it misreads the (Zip64) file size data.
    I've supplied a screenshot of Windows Explorer showing the bad file size
    it gets, and the failure that occurs when one tries to use it to extract
    the file from one of these archives, as you requested.  This is
    consistent with the fact that there's a bug in the .zip reader used by
    Windows Explorer.
       Yes, "other zip application runs correctly."  Info-ZIP UnZip runs
    correctly.  Only Windows Explorer does _not_ run correctly.

  • MacOS how to use standard UNIX behavior for new files

    Hi,
    I have one problem. then i create new files and folders on my Mac, they get group owner from parant. How can i say to OS that it should get group owner for new files from user GID? same as it works on UNIX/Linux?
    How it works on Mac:
    MacOS:/ napetrov$ mkdir -p /tmp/new_dir
    MacOS:/ napetrov$ id
    uid=34148(napetrov) gid=45956(users)
    MacOS:/ napetrov$ ls -al /tmp/new_dir
    total 0
    drwxr-xr-x 2 napetrov wheel 68 Aug 13 19:06 .
    drwxrwxrwt 14 root wheel 476 Aug 13 19:06 ..
    How it works on linux:
    -bash-3.2$ mkdir -p /tmp/new_dir
    -bash-3.2$ id
    uid=34148(napetrov) gid=45956(users)
    -bash-3.2$ ls -al /tmp/new_dir
    total 20
    drwxr-xr-x 2 napetrov users 4096 Aug 13 19:01 .
    drwxrwxrwt 22 root root 12288 Aug 13 19:01 ..
    Message was edited by: napetrov

    napetrov, there are two varieties of UNIX behavior regarding the group of a newly created file. The first variety, which Linux uses, comes from System V UNIX — where the file is created with the group ID of the creating user. The second variety, which Mac OS X uses, comes from BSD UNIX — where the file is created with the group ID of the directory in which it is located.
    In some UNIXes that come with the System V behavior by default, the BSD behavior can be applied to a particular directory by setting the directory‘s “setgid” bit. However, it is rare for a UNIX that comes with the BSD behavior by default to provide a way to allow the System V behavior for a particular user. To my knowledge, Mac OS X does not provide a way to allow the System V behavior for a particular user; thus, I’d recommend the explicit use of chgrp to set the group ID of a newly created file to that of the creating user, if that behavior is what your application needs.

  • Adding Group, and Changing Account GID

    Hello there,
    I am wanting to add a new user group with an ID of 1000, and move my main account into that group, then update everything that has the old GID with the new one. This is so that I can share files easier with another UNIX system I use without having to tweak the permissions for each file.
    I've done quite a bit of searching in the past couple days, but all I can seem to come up with are old, outdated instructions that don't work on OS X anymore.
    Any help would be much appreciated. Thank you.

    Did you try adding the Group in Users & Groups, then right-clicking on the Group and selecting Advanced settings?
    I don't know if that is the correct way, but it seems like it.

  • Accessing a Unix File

    Hey All ,
    Here is what the requirement is --
    Need to access data from a flat file located in a UNIX box.
    1. The Flat file is located in Unix Box 1.
    2. The ODI install (agent) is installed in Unix Box 2 and runs under User 1.
    3. Need to create an interface which will load data from the Flat File in Unix Box 1 to database unsing ofcourse the installed agent/ODI setup.
    What I need to do like setup wise to make this possible.
    Thanks in Advance.
    Dk.

    Maybe I was being over-cautious.
    but if you run
    user @ server > id
    uid= *1099* (user) gid=22(users)Here 1099 is what I am referring to. This number maybe different for same user on different unix systems. So, even if you mount correctly, the restricted file permissions may not allow the access to the file.

  • 'kmosx: I lost my admin user'  Not working Unix Guru required!

    Hi,
    My Dual G5 decided (by itself) that I was no longer qualified to administer it and has removed the admin privileges from my account demoting me to a standard user.
    I tried Michael's 'kmosx: I lost my admin user' guide but am getting a Unix error after trying the 'nicl -raw /var/db/netinfo/local.nidb -create /groups/admin gid 80' command.
    The error is 'create: invalid path'
    I've successfully repaired the disk using the fsck - fy command and have no errors. I've also have write privileges on the disk.
    Basically if there is a Unix guru that could assist it would be most appreciated.
    Cheers

    Ok, thanks for the support so far. I've ran the nidump -r /groups / command and it just hung there doing nothing. I had to ctrl+c to stop it. The same thing for the users.
    I had a look in the local.nidb directory and I have a range of 'Store.xxxx' files with various dates. Would it be possible to revert back to a previous netinfo db? I'm assuming that these files are previous versions. The most recent is yesterdays Store.672 when I noticed the problem.
    Also, in single user mode is it possible to create a new user with admin privileges? I could then use that user to change my login to admin and then remove the newly created user. Or does it have to have a record in the netinfo db?
    If I remove the .AppleSetupDone file and re-run the setup program what will I lose? Will this overwrite any personal files (I have 30Gb of photos and databases that although backed up would I can still access through the standard user)?
    Thanks in advance.

  • UIS GID and sticky bit problem

    Not sure the best place to post this, could not find a forum that really matched what I am asking.
    My Chronosync is having problems with not being able to backup certain files. (cover.jpg)
    I seem to have traced it to files with what I think is a Sticky bit....but I thought a file with a sticky bit was shown with a t as in:
    -rwxrwxrwxt
    but the problem files are shown :
    -rwxrwxrwx@
    It is a file that I have moved from one user to another via the Drop box...so i know that causes issues with UID GID and Sticky bits etc
    How in terminal do i correct the file permissions to:
    -rwxrwxrwx
    OK I could just re download the file or copy it from the other user another way...but I am still interested in this "@" attached to the permission string and how to change it.
    have tried various combinations of chown and chmod but cant get any change...
    I have seen some references to it being a indicator to the OS that it is a file downloaded from the internet...but how to remove this ?
    sh-3.2# ls -l
    total 1986808
    -rwxrwxrwx@ 1 bonair staff 6148 3 May 13:45 .DS_Store
    -rwxrwxrwx 1 bonair staff 174187271 3 May 14:11 01 - Bastity Chelt.flac
    -rwxrwxrwx 1 bonair staff 144769872 3 May 14:11 02 - Jersey.flac
    -rwxrwxrwx 1 bonair staff 179664537 3 May 14:11 03 - The Football Match.flac
    -rwxrwxrwx 1 bonair staff 133005983 3 May 14:11 04 - America.flac
    -rwxrwxrwx 1 bonair staff 38122932 3 May 14:11 05 - Zits.flac
    -rwxrwxrwx 1 bonair staff 54626233 3 May 14:11 06 - Number Plates.flac
    -rwxrwxrwx 1 bonair staff 129378885 3 May 14:11 07 - The Bus Trip.flac
    -rwxrwxrwx 1 bonair staff 57536059 3 May 14:11 08 - Car Insurance.flac
    -rwxrwxrwx 1 bonair staff 104705018 3 May 14:11 09 - Magic Roundabout.flac
    -rwxrwxrwx@ 1 bonair staff 471848 3 May 12:04 cover copy.jpg
    -rwxrwxrwx@ 1 bonair staff 471848 3 May 12:04 cover.jpg
    sh-3.2#

    I already gave you the Unix command to tell you what the @ indicates
    ls -aleO@ # lowercase l, lowercase e, capital O, and at sign
    Why not use it?
    I also suggested what each extended attribute might be, but without output from the above ls -leO@ I can only guess.
    Here are the relevant parts of "man ls"
    -a Include directory entries whose names begin with a dot (.).
    -l (The lowercase letter ``ell''.) List in long format. (See
    below.) If the output is to a terminal, a total sum for all the
    file sizes is output on a line before the long listing.
    -e Print the Access Control List (ACL) associated with the file, if
    present. Also see "man chmod".
    -O Include the file flags in a long (-l) output.
    Also see "man chflags".
    -@ Display extended attribute keys and sizes.
    There is no man page for extended attributes, however, there is a minimal amount of usage information built into the command:
    xattr --help
    usage: xattr [-l] file [file ...]
    xattr -p [-l] attr_name file [file ...]
    xattr -w attr_name attr_value file [file ...]
    xattr -d attr_name file [file ...]
    The first form lists the names of all xattrs on the given file(s).
    The second form (-p) prints the value of the xattr attr_name.
    The third form (-w) sets the value of the xattr attr_name to attr_value.
    The fourth form (-d) deletes the xattr attr_name.
    options:
    -h: print this help
    -l: print long format (attr_name: attr_value)

  • Darwin UNIX prompt -- What now?

    My wife attempted to change read & write permissions to the hard drive so our children could not access her files. She set the group to "admin" and the permission to "no access." The result is that the computer boots up to a black/white Darwin UNIX prompt asking for username and password. She logs in and gets a blue empty screen with the curser showing and nothing else. What do we do now? Thanks in advance!

    You could boot up your install cd/dvd and repair permissions. Power on the machine, quickly insert the cd/dvd, then hold down the c key. Look for disk utility. I think it is on a pull down on one of the items on the top of the screen. Pick the disk and click the repair tab. ( Something like this. )
    Perhaps you could find a Mac Terminal expert. You can use terminal commands to change the permissions on any file.
    I assume the mac put you in single user mode. You can get into single user mode by holding down the command-s key. Follow the hints to get the disk in read/write mode.
    You can change the permissions of files and directories in Mac OS.
    The lines below are some powerful stuff. You best read up on this. See:
    http://kb.iu.edu/data/abdb.html
    Your going to have to find the UID and GID of the user you want to change. To see the users, do:
    ls /Users
    Let's assume myuser. Do:
    cd /Users/myuser
    To find out your UID and GID do:
    ls -ln
    ls -l
    compare the output and write down what you find.
    You best use the numeric value for your userid. In this case it is 500. To list all the files owned by a userid do:
    This is a safe command since we are listing the files found.
    sudo find / -user 500 -exec ls {} \;
    /* adding a -x before the / limits the search to the current file system. */
    I
    You best use the numeric value for your userid. In this case it is 500.
    This could cause you trouble. Be careful.
    sudo find / -user 500 -exec chmod 644 {} \;
    /* Let you read & write. Everyone else can read */
    On the Mac you get into single user mode by holding down command-s when you poweron your machine. Just in case you run into problems.
    The real way to do control access for your children is to set up another account on the machine. Turn on user logon. Have everyone logon.
    Robert

  • What is jewab (Unix Group\jewab)?

    I had some weird problems yesterday, so I thought I should poke around to see whether someone had hacked into my system. When I looked at the Security tab of the Properties for my Western Digital MyBook, which is connected directly to my Airport Extreme, I saw that one of the "Group or user names" is "jewab (Unix Group\jewab)." A Google search found various references to this entry, which did not seem to say it is a problem, and seemed to say it is somehow standard for the WD MyBook. However, I found no information on it at the WD web site.
    Anyone know what or who "jewab (Unix Group\jewab)" is and whether I should worry about it?

    Hi Rob,
    I have solevd my issue and I did not need to destroy / re-create the Open Directory. See my post here https://discussions.apple.com/thread/5785838 for all the gory details. The long and the short of it was that my problems all came from a point in the past when I changed the hostname of my server after I had created the Open Directory master. Seems like that is a very bad idea! Based on what I found it seems liek any small flaw in DNS forward and reverse name resolution can also cause similar issues. I don't knwo if either of thsoe may apply to your situation?
    As part of troubleshooting my issue I actually created a 'replica' of my server setup on another machine includingthe OD and associated users and groups. What I found was that many services (certainly mail, calendar and contacts) depend completely on the OD users and groups UUIDS. So if you wish to preserve user's data across an OD destroy and re-create it is vital that you carefully note for each group its Unix GID and its OD UUID and for each user their Unix uid, primary group id and UUID. When you are re-creating your OD master, as you create each group, use Directory editor to change its UUID to the original value. Similarly for Users. If you don't then users will no longer have access to any existign Mail, Contacts or Calendar data afterwards!
    HTH,
    Chris

  • Changing GID of DBA group

    Hi All,
    The UNIX SA would like to change the gid of the DBA group (basically when this was first setup the group was give an ID of 15 ... so the Unix SA would like to change this to something > 100).
    I've read a number of articles regarding this however I've found conflicting information as to what steps are required. Some say that the oracle software does not reference the ID and so no re-linking is required other say that the software will require re-linking. Could anyone clarify this?
    N.B
    Only the ID of the group is changing the name of the group will stay the same.
    System information:
    Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Linux 2.6.9-89.0.23.ELsmp #1 SMP Fri Mar 5 23:27:13 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
    Thanks for your help
    - Kai

    If group name is going to be same and ID is changing , no need of any relink.

  • Newbie: how to handle pipes and semicolons while launching UNIX commands?

    Good afternoon,
    I am trying to write a Java class that can launch UNIX commands.
    Launching simple commands (date, ps -ef) works fine, but when I start using pipes and semicolons, it goes wrong:
    Java code (pipe example):
            String command = "ps -ef | grep config";
            Process child = Runtime.getRuntime().exec(command);Result:
    usage: ps [ -aAdeflcjLPy ] [ -o format ] [ -t termlist ]
            [ -u userlist ] [ -U userlist ] [ -G grouplist ]
            [ -p proclist ] [ -g pgrplist ] [ -s sidlist ]
      'format' is one or more of:
            user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid
            pri opri pcpu pmem vsz rss osz nice class time etime stime
            f s c lwp nlwp psr tty addr wchan fname comm args projid projectJava code (semicolon example):
            String command = "date;ps -ef";
            Process child = Runtime.getRuntime().exec(command);Result:
    date;ps: not foundClearly the pipes and the semicolons are handled by the UNIX shell and cannot be put in the Java source code as such.
    Does anybody know a way around this?
    Thanks
    Dominique

    Pipes and semicolons are interpreted by a shell (bash, csh etc) and when one executes as you are doing no shell is involved. This is easy to solve by using the alternate version of exec() which takes an array as an argument and to use your shell of choice. For example :-
    String[] command = {"bash", "-c", "date;ps -ef"};Note that the third argument is the whole of the command to be interpreted.
    Two points to consider. First you should read, digest and implement all the recommendations in http://www.javaworld.com/jw-12-2000/jw-1229-traps.html; failure to do so will at some point lead to significant loss of hair. Second you should probably use ProcessBuilder rather than Runtime.exec(). Behind the scenes Runtime.exec() uses ProcessBuilder but ProcessBuilder provides a better interface with more features.

  • ORA-12547: TNS:lost contact Linux with different unix userids

    Hi all,
    I have installed Oracle under the linux username oracle. I can connect to the database as system user sqlplus. When I log on to a different username, I get the TNS: lost contact error.
    I made sure that the new username is in the dba group and the entire /home/oracle directory structure allows access to the dba group.
    What else do I need to do to allow other linux usernames besides oracle to connect to the database?
    Thanks,

    [satin@ddschwitrh4 ~]$ diff /tmp/satin.env /tmp/oracle.env
    _=/bin/env
    COLORTERM=gnome-terminal
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-P4ptdaASXQ
    DESKTOP_SESSION=default
    DESKTOP_STARTUP_ID=
    GDMSESSION=default
    GNOME_DESKTOP_SESSION_ID=Default
    GNOME_KEYRING_SOCKET=/tmp/keyring-tPzxmx/socket
    GTK_RC_FILES=/etc/gtk/gtkrc:/home/satin/.gtkrc-1.2-gnome2
    HOME=/root
    HOME=/home/oracle
    LD_LIBRARY_PATH=/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib
    LOGNAME=satin
    LOGNAME=oracle
    MAIL=/var/spool/mail/satin
    NWISDB=ORACLE
    OLDPWD=/home/satin/oracledecodes
    MAIL=/var/spool/mail/oracle
    NWISDB=NWISDD
    OLDPWD=/home/oracle/oracledecodes35,36c29,31
    < PATH=/usr/java/latest/bin:/usr/kerberos/sbin:/usr/java/latest/bin:/usr/ant/bin:/usr/opt/DECODES/bin:/usr/java/latest/bin:/usr/ant/bin:/usr/opt/DECODES/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/satin/bin:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin
    < PWD=/root
    ORACLE_TERM=xterm
    PATH=/usr/java/latest/bin:/usr/ant/bin:/usr/opt/DECODES/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin
    PWD=/home/oracle38d32
    < SESSION_MANAGER=local/ddschwitrh4.er.usgs.gov:/tmp/.ICE-unix/5636
    40,41c34
    < SHLVL=3
    < SSH_AGENT_PID=5666
    SHLVL=143d35
    < SSH_AUTH_SOCK=/tmp/ssh-hIEyPP5636/agent.5636
    45,48c37,38
    < USER=satin
    < _=/usr/bin/env
    < WINDOWID=18874447
    < XAUTHORITY=/root/.xauthdeWnqQ
    USER=oracle
    XAUTHORITY=/home/oracle/.xauthiGYDCi[satin@ddschwitrh4 ~]$ uname -a
    Linux ddschwitrh4.er.xxxx.gov 2.6.9-89.0.26.ELsmp #1 SMP Sun May 30 09:31:52 EDT 2010 i686 i686 i386 GNU/Linux
    [satin@ddschwitrh4 ~]$ cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    130.xx.xxx.41 ddschwitrh4.er.xxxx.gov dschwitrh4.er.xxxx.gov ddschwitrh4
    [oracle@ddschwitrh4 ~]$ id
    uid=510(oracle) gid=512(oracle) groups=502(nwuser),510(nwdba),512(oracle)
    [satin@ddschwitrh4 ~]$ id
    uid=502(satin) gid=503(satin) groups=502(nwuser),503(satin),512(oracle),513(dba)
    Regards.

  • Configure LDAP for UNIX user

    Hi All
    I am doing user provisioning of SUN IDM to SUN LDAP. But In LDAP i am storing unix user. When you create any user in LDAP for UNIX then you have to specify UID, GID ,Home directory.
    Same thing i m try to create user in LDAP for unix through SUN IDM.
    But I am not able to enable checked box for unix user in posix user information.
    By default this check box is disable. we have to enable manually this check box if u want to create a user for unix in LDAP.
    I want to change this check box disable to enable by default.
    it is very urgent.
    I am not getting any doc related doc or other thing.
    thanks
    SAini

    We have so few customers using ADAM now that LDAP to AD is supported I forgot this. However to note: this means managing an entire new directory separate from your multiple AD forests.
    http://technet.microsoft.com/en-us/magazine/2009.04.schema.aspx?pr=blog
    Regards,
    Tim

  • How to delete file from application server(Unix)

    Hi All,
    Using the below code downloading a file from application server(Unix) to client machine. I want to delete the file from application server once it is downloaded to client
    We work on Forms 11.1.1.4.0 and Oracle DB 10g. Client machine are Windows 7.
    BEGIN
      IF webutil_file_transfer.AS_to_Client
      (clientFile => Name_In('global.g_file_name')
      ,serverFile => ls_AppServer_Loc)THEN
      message('Data exported Successfully');
      ELSE
       message('File download from Application Server failed');
      END IF;
    EXCEPTION
      WHEN OTHERS THEN
      message('File download failed: '||SUBSTR(sqlerrm,1,200));
      END;
    I have search for solution on OTN. Few suggested to use HOST.
    Can any one help me how to use Host() built_in to delete the file.
    Thanks,
    Maddy

    Can any one help me how to use Host() built_in to delete the file.
    Host('/bin/rm <complete file path>');

Maybe you are looking for