How extract Solaris package without root privilege

Hi!
Is there any way to extract files from Solaris package file (.pkg) without root privilege?
Like I can do it for rpm: rpm2cpio foo-2.0.i386.rpm | cpio -ivmud

You can use 'pkgtrans':
Syntax:
pkgtrans <package> <destination directory>
.7/M.

Similar Messages

  • How to install from existing linux without root privilege?

    We have a ubuntu server for develop in our company and I have a account. I am more familiar with archlinux. However, I can't just tell the system administrator to replace ubuntu with arch, since that would break everything. And I do not have root privilege. So I am wondering would it possible to install archlinux in the home directory, and use it like a virtual machine?

    DSpider wrote:
    Pacman needs root privileges (sudo) to work.
    So if sudo works for you, then you have root privileges.
    Maybe fakeroot or fakechroot?
    Trilby wrote:
    Ubuntu + pacman != arch.
    If you are able/allowed to reboot the machine, you certainly can install arch on a flash drive and have your portable system that you would run on their hardware.
    I am asking something different. I want to run arch on another linux.
    ewaller wrote:
    So, as a user on the system, you should be able to install anything you want to your home directory.
    What, specifically, would you like to install to your home directory that you can run with plain user permissions without causing impact to other users.  I am confused as to what you think you want to do..
    Something like, install software (including pacman) to home directory via pacman. Start a server by rc.d (I think in this case, sys-V is better than systemd).
    For example, I could run this command in ubuntu without root permission, and that ubuntu server didn't install mysql.
    $ pacman -S mysql
    $ rc.d start mysqld
    $ #Or "systemstl start mysqld.service"

  • Ability to install Studio 10 without root privileges

    My group is currently using Forte Developer 6 to develope on Sun Blade 2500 machines running Solaris 8. I would like to use the trial version of Sun Studio 10 to show my group the performance improvements recieved by upgrading compilers. I've downloaded the install packages, but found that root privileges are required to run the install (even when trying to install in my own workspace). Is there any way I can install Studio 10 without having root privileges? I work for a fairly large company where it is almost impossible to get root privileges even for developer machines to do any install. Finding someone who does have root privileges and is willing to do the install seems even more difficult. Anyway, any and all help would be greatly appreciated!

    Unfortunately, root privileges are required for installing, updating, or uninstalling any available release of Sun Studio. The reason is that the product is installed as packages, which requires root privileges to update the Solaris package database. Using packages and root-only access ensures that an installation is identifiable and consistent (except for mistakes made by people with root access). Supporiting the product is difficult when there is no way to know what is actually installed.
    Nevertheless, the ability to install as an ordinary user is a frequently-requested feature. We are looking a ways to provide this capability in a future release.

  • How to create JTree without root node

    Hello;
    I like to create a JTree without root node?
    Any help?
    Thanks!
    --tony                                                                                                                                                                                   

    javadocs JTree,
    setRootVisible
    public void setRootVisible(boolean rootVisible)
    Determines whether or not the root node from the TreeModel is visible.
    Parameters:
    rootVisible - true if the root node of the tree is to be displayedSee Also:
    rootVisible

  • Kde4.10 system settings doesn't works without root privileges (SOLVED)

    After update to version 4.10.0-1 systemsettings only works with root privileges. When I launch the application as a normal user window opens but nothing happens when I click any option. Is this a bug?
    Last edited by vovotux (2013-02-17 17:35:04)

    I had tried it. The output on konsole is "QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave" what seems to be a generic error message concerning a problem in implementing the PoliceKit. Closing the window the output message is "systemsettings(1780)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:"
    Given that the application works correctly when using kdesu systemsettings, I think that it is a permission issue.

  • HAI (Home Arch Install) - install packages without root account

    HAI, or Home Arch Install, can "install" and run Arch Linux programs from your normal user account. (Even if you don't run Arch Linux at all - see the config file.)
    HAI's design is heavily inspired by Zero Install, but it uses Arch Linux packages instead of a new package format. This means you can make use of Arch's extensive package database, right now.
    HAI follows the KISS and worse-is-better philosophies. HAI is implemented as a set of specialized bash scripts, with under 500 lines of code in total, so it's not that hard to read, understand and extend.
    HAI doesn't really install the packages it downloads - it uses fakechroot and unionfs-fuse to fool the program you run into thinking it's installed in /usr.
    Quick start guide:
    1. Download HAI from http://www.smnd.sk/tomi/hai/hai-1.1.tar.gz . (The address might eventually change, so please don't link to it directly.)
    2. HAI doesn't need system-wide installation. Just unpack it somewhere.
    3. Put this in your ~/.bashrc file: "alias hai=~/your/directory/with/hai". This allows you to run hai without typing the path.
    4. Run "./bootstrap" from HAI's directory. This downloads dependencies HAI itself needs. (You need FUSE already installed, though.)
    5. Try it:
    hai bwm-ng
    hai frozen-bubble
    hai pysolfc pysolfc-cardsets -- pysol
    hai inkscape -- inkscape somefile.svg
    # in general: hai (what packages to install) -- (what program to run)
    HAI comes with a README.txt file. You really should read it, it's short and if you've read this far, you already know most of it.
    I've been working on HAI for two months and it's finally reached a state bug-free and elegant enough that it satisfies my prefectionism. I developed HAI to scratch my own itch, but please tell me if you try HAI, or perhaps even find it useful! I'd also like to know about any bugs you experience or feature requests you might have. If you find something in the documentation that could use clarifying, tell me as well.
    (Update 2010-05-11: hai-1.1 fixes a bug when downloading from AUR and switches from tar to bsdtar, because tar acts up when downloading xz-compressed packages. For now, bsdtar has to be installed on the local system.)
    Last edited by Tomi (2010-05-11 10:35:44)

    Oops, didn't notice your reply, tavianator. Thanks for the bug reports!
    vercmp: That's what I get for assuming libalpm won't change its internal layout... it was working at the time of HAI's release. Thanks for the fix.
    rsync: I use it to get the fakechroot PKGBUILD. I could download the whole ABS tree through http, but most of the time it would be a waste... I'll try to think of a compromise.
    Using HAI on distros other than Arch isn't very streamlined, though this is something I hope to improve. The SYSTEM_CHECK in the config file needs changing. (It's a program that checks if a package is already installed on the machine.) This line should work (it was tested on Mandriva, which uses rpm too):
    SYSTEM_CHECK='local sysver; sysver=`rpm -qa | grep "^\(\|lib\)$requestname" | sort | grep -o "[^-]*-[^-]*$" | grep -o "^[^-]*"` || true; [ "$sysver" ] && version-ok "$sysver" && true'
    Update on rsync: The PKGBUILD is in http://repos.archlinux.org/wsvn/package … dl&isdir=1 too, but that link can easily change if Arch switched from websvn to someting else. I'd appreciate a second opinion whether to use rsync or this link.
    Last edited by Tomi (2010-05-19 18:21:10)

  • [Solved] Dolphin won't show video thumbnailer without root privileges

    Hi, I have this issue that the video thumbnailer thing doesn't work if I dont run dolphin with root settings ('kdesu dolphin').
    There is some difference in my settings but I dunno what it is.
    Here's a screenshot:
    Edit: Looks like none of my thumbnailers work with my user settings.
    Last edited by algorythm (2009-09-30 12:34:17)

    Well here's screenie of my settings too:
    E: and a bigger one: http://img29.imageshack.us/img29/7638/snapshot3y.png
    E: Solved by deleting old settings.
    Last edited by algorythm (2009-09-30 12:33:55)

  • Shaman doesn't ask for root password. But gets root privileges!!

    As the title says:
    Shaman is launched as a reguler user, never asks for root password, but still i able to install and uninstall packages.
    Either something in my system is seriously fucked, or there is a major securiy problem with shaman.
    Running openbox, installed shaman while running gnome, if that has anythiung to say. Sudo is not installed.
    Output from running shaman in terminal:
    [gert@flyktig ~]$ shaman
    This process is currently running setuid or setgid.
    GTK+ does not allow this therefore Qt cannot use the GTK+ integration.
    Try launching your app using 'gksudo', 'kdesudo' or a similar tool.
    See http://www.gtk.org/setuid.html for more information.
    Translations are enabled.
    Loading translations from "/usr/share/shaman/translations/"
    Parsing "core"
    Parser exited
    Parsing "extra"
    Parser exited
    Parsing "community"
    Parser exited
    Parser exited
    Log File should be: ""
    "core" ---> "http://mirror.archlinux.no/core/os/i686"
    "extra" ---> "http://mirror.archlinux.no/extra/os/i686"
    "community" ---> "http://mirror.archlinux.no/community/os/i686"
    Root privileges retired.
    "/home/gert/.config/shaman/shaman.conf"
    >>
    >> Shaman 1.0.9
    >> Compiled against Qt 4.4.1
    >> Running with Qt 4.4.3
    >>
    >> Our website is @ http://shaman.iskrembilen.com/ , join in!!
    >> You can also find a bugtracker in the website, please use it.
    >>
    >> Have you found a bug? Help us solving it faster! Please read
    >> http://shaman.iskrembilen.com/trac/wiki/Debugging_Shaman
    >> and please follow these steps to report bugs effectively!
    >>
    >> Starting Up Shaman...
    User agent is: "shaman/1.0.9 (Linux i686) libalpm/3.1.1"
    Shaman registered on the System Bus as ":1.51"
    Service org.archlinux.shaman successfully exported on the System Bus.
    --> UNSETENV HTTP_PROXY
    --> UNSETENV FTP_PROXY
    Populating Repo column
    Log file is: /var/log/pacman.log
    refinePkgView
    The left TextBox is over, let's do the ComboBox
    Show all packages
    Remove Package
    "Uninstall package: alunn"
    "alunn"
    "community"
    Process Queue
    Queue Dialog started
    Queue signals connected
    Starting Package Removal
    Root Privileges granted.
    Uid is: 1000
    Received Event Callback
    Alpm Thread Waiting.
    Entering Queue Lock
    Releasing Queue Lock
    Alpm Thread awake.
    Received Event Callback
    Alpm Thread Waiting.
    Entering Queue Lock
    Releasing Queue Lock
    Alpm Thread awake.
    Received Event Callback
    Alpm Thread Waiting.
    Entering Queue Lock
    No scriptlet for package alunn
    Releasing Queue Lock
    Alpm Thread awake.
    Received Event Callback
    Alpm Thread Waiting.
    Entering Queue Lock
    No scriptlet for package alunn
    Releasing Queue Lock
    Alpm Thread awake.
    /sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Ikke tilgang
    Root privileges retired.
    Transaction Completed Successfully
    refinePkgView
    refinePkgView
    The left TextBox is over, let's do the ComboBox
    Show all packages
    [gert@flyktig ~]$

    The point of this thread was that you don't need to enter the root password at all. Not the first time, not ever.
    As far as I understand, it is supposed to work like this: When you first use shaman too install anything, it asks for the root password You can tick a "Do not ask me again"-box, so you don't have to enter the password again. If you tick the box and enter the password, shaman add the lines
    [auth]
    askforpwd=false
    to the users shaman.conf-file (~./config/shaman/shaman.conf) The next time shaman is run, it checks the config file, and if the askforpwd value is set to false, it grants itself root privileges (with some nifty setuuid root-thingy, I imagine) This is not the problem - this is the feature.
    The bug is this:
    the fact that any user can add the lines
    [auth]
    askforpwd=false
    to his own shaman.conf file, without ever entering the root password in shaman. The next time shaman is run, it checks the config file, and if the askforpwd value is set to false, it grants itself root privileges - even though the user has never entered the root password.
    This works for any unprivileged user on the system.
    If that is indeed a feature intended by any sane person, then I'm Mother Mary. And that can't be, seeing as I don't have breasts.

  • Need help authorizing tool with root privileges

    So i've read apples docs on AuthorizationServices many times but they're examples leave a lot out (or maybe im just overlooking things) Can anyone provide a simple example of how to give an application root privileges, im trying to create a cleaning tool that removes caches etc.

    You can't really "give an application root privileges". You can execute a tool with root privileges. I use the following:
    #import "Authorization.h"
    #import <Security/Authorization.h>
    #import <Security/AuthorizationTags.h>
    @implementation Authorization
    // Constructor.
    - (id) init
    self = [super init];
    if(self)
    AuthorizationFlags flags = kAuthorizationFlagDefaults;
    OSStatus status =
    AuthorizationCreate(
    0, kAuthorizationEmptyEnvironment, flags, & myAuthorizationRef);
    if(status != errAuthorizationSuccess)
    @throw
    [NSException
    exceptionWithName: @"AuthorizationCreateFailure"
    reason: [NSString stringWithFormat: @"Error code: %d", status]
    userInfo: nil];
    return self;
    // Destructor.
    - (void) dealloc
    if(myAuthorizationRef)
    AuthorizationFree(myAuthorizationRef, kAuthorizationFlagDefaults);
    [super dealloc];
    // Execute a privileged task.
    // Returns YES if the task executed successfully, NO otherwise.
    - (BOOL) run: (NSString *) executable
    withArguments: (NSArray *) arguments
    output: (NSString **) output
    AuthorizationItem items = { kAuthorizationRightExecute, 0, 0, 0 };
    AuthorizationRights rights = { 1, & items };
    AuthorizationFlags flags =
    kAuthorizationFlagDefaults
    | kAuthorizationFlagInteractionAllowed
    | kAuthorizationFlagPreAuthorize
    | kAuthorizationFlagExtendRights;
    OSStatus status = AuthorizationCopyRights(
    myAuthorizationRef, & rights, 0, flags, 0);
    if(status != errAuthorizationSuccess)
    @throw
    [NSException
    exceptionWithName: @"AuthorizationCopyRightsFailure"
    reason: [NSString stringWithFormat: @"Error code: %d", status]
    userInfo: nil];
    char ** args = (char **)malloc([arguments count] + 1);
    int index = 0;
    for(NSString * argument in arguments)
    args[index++] = (char *)[argument UTF8String];
    args[index] = 0;
    FILE * pipe = 0;
    flags = kAuthorizationFlagDefaults;
    status =
    AuthorizationExecuteWithPrivileges(
    myAuthorizationRef,
    [executable UTF8String],
    flags,
    args,
    & pipe);
    free(args);
    if(output)
    NSMutableString * results = [NSMutableString new];
    char buf[128];
    while(true)
    int bytesRead = read (fileno(pipe), buf, sizeof(buf) - 1);
    if(bytesRead < 1)
    break;
    buf[bytesRead] = 0;
    [results appendString: [NSString stringWithUTF8String: buf]];
    [results autorelease];
    *output = results;
    return status == errAuthorizationSuccess;
    // Execute a privileged task.
    // Returns YES if the task executed successfully, NO otherwise.
    + (BOOL) execute: (NSString *) executable
    withArguments: (NSArray *) arguments
    output: (NSString **) output
    Authorization * authorization = [Authorization new];
    BOOL result =
    [authorization run: executable withArguments: arguments output: output];
    [authorization release];
    return result;
    @end

  • How to launch an App with Root privileges - without enabling "root" user ac

    Is there a reliable way to launch an Application so that it can run with "root" privileges, but without enabling the OSX root account and logging in to that account?
    There is an old (and, presumably, obsolete) application called "Pseudo" which used to facilitate this, but I doubt it would be safe or reliable under OSX 10.5.
    So, does anyone have any suggestions?

    For a more permanent method, run the following command on the same file:
    sudo chmod u+s
    if the item is owned by root. This may be undone by the repair permissions command.
    (27138)

  • Which command we use to check  root privileged users in solaris

    Hi,
    please tell me ,if i want to check the number of people using super user privilege in the sun solaris server .how we can find that ? ,is there any command to find that ?
    please reply me
    boby

    there is few ways to use root privileges
    - login as root or as user with UID 0
    - login as ordinary user and do su - . In this case check group ownership of su file and pam config
    - use sudo command - check sudo config file

  • How so I protect my root file system? - x86 solaris 10 - zfs data pools

    Hello all:
    I'm new to ZFS and am trying to understand it better before I start building a new file server. I'm looking for a low cost file server for smaller projects I support and would like to use the ZFS capabilities. If I install Solaris 10 on a x86 platform and add a bunch of drives to it to create a zpool (raidz), how do I protect my root filesystem? The files in the ZFS file system are well protected, but what about my operating system files down in the root ufs filesystem? If the root filesystem gets corrupted, do I lose the zfs filesystem too? or can I independantly rebuild the root filesystem and just remount the zfs filesystem? Should I install solaris 10 on a mirrored set of drives? Can the root filesystem be zfs too? I'd like to be able to use a fairly simple PC to do this, perhaps one that doesn't have built in raid. I'm not looking for 10 terabytes of storage, maybe just four 500gb sata disks connected into a raidz zpool.
    thanks,

    patrickez wrote:
    If I install Solaris 10 on a x86 platform and add a bunch of drives to it to create a zpool (raidz), how do I protect my root filesystem?Solaris 10 doesn't yet support ZFS for a root filesystem, but it is working in some OpenSolaris distributions.
    You could use Sun Volume Manager to create a mirror for your root filesystem.
    The files in the ZFS file system are well protected, but what about my operating system files down in the root ufs filesystem? If the root filesystem gets corrupted, do I lose the zfs filesystem too?No. They're separate filesystems.
    or can I independantly rebuild the root filesystem and just remount the zfs filesystem? Yes. (Actually, you can import the ZFS pool you created).
    Should I install solaris 10 on a mirrored set of drives?If you have one, that would work as well.
    Can the root filesystem be zfs too?Not currently in Solaris 10. The initial root support in OpenSolaris will require the root pool be only a single disk or mirrors. No striping, no raidz.
    Darren

  • How to use SAX Parseto paser xml without root element

    Hello,
    I have big a xml file(500M) with without root element. How can I use SAXParse to parse it.

    A well-formed XML file has a single root element. Your parser can't deal with any other kind. So find the person who produced that file and explain politely that it's no good. (Hitting them with a big stick would be optional.)
    You could write a non-XML program that reads it in and creates a new version, wrapped in a single root element, if your supplier can't fix their problem.

  • How do i uninstall applications and their packages without littering trashcan

    how do i uninstall applications and their packages without littering trashcan.
                                                                                                       *sincerly nube*

    OK. That wasn't clear at first. See the following:
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash.  Applications may create preference files that are stored in the /Home/Library/Preferences/ folder.  Although they do nothing once you delete the associated application, they do take up some disk space.  If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application.  In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder.  You can also check there to see if the application has created a folder.  You can also delete the folder that's in the Applications Support folder.  Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item.  Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder.  Log In Items are set in the Accounts preferences.  Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab.  Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    Some software use startup daemons or agents that are a new feature of the OS.  Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term.  Unfortunately Spotlight will not look in certain folders by default.  You can modify Spotlight's behavior or use a third-party search utility, EasyFind, instead.
    Some applications install a receipt in the /Library/Receipts/ folder.  Usually with the same name as the program or the developer.  The item generally has a ".pkg" extension.  Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are many utilities that can uninstall applications.  Here is a selection:
        1. AppZapper 2.0.1
        2. AppDelete 3.2.6
        3. Automaton 1.50
        4. Hazel
        5. AppCleaner 2.1.0
        6. CleanApp
        7. iTrash 1.8.2
        8. Amnesia
        9. Uninstaller 1.15.1
      10. Spring Cleaning 11.0.1
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • Help!!! How to get the recovery time of transient response of a power supply with Labview basic package without analysis option?

    How to get the recovery time of transient response of a power supply with Labview basic package without analysis option? Does anyone have any idea or some similar function SUBVIs?
    Recovery time of transient response is defined as the time from the beginning of the transient to the voltage point on the waveform fallen into 10percent of the overshoot. Well, the waveform is something like a pulse with a soft slope.

    I recommend plotting your data on a graph on paper. Take a look at the data, and determine what is unique about the point you are looking for. Look for how you can teach your program to look for this point.
    I have written several algorithms that do similar, one in fact being for a power supply, the other being for RPM. Neither algorithm used any advanced analysis tools. They are just a matter of determining, mathematically, when you achieve what you are looking for. Just sit down with your graph (I recommend multiple copies) and draw horizontal and vertical lines that determine when you get to the point you are looking for. You are probably going to have to reverse the array and start from the end, so think in those terms.
    If you have trouble, emai
    l me a bitmap of the graph, and what you are looking for and I will try to be of further assistance. Don't do that however; until you you have given this a few tries. Your solution should be involve a lot of logic on analog levels.
    Good luck

Maybe you are looking for

  • How to recover hidden information in e-mail folders?

    Specifically, I have a mailbox that all the e-mails are marked as unread. On Friday of last week only 70 of the 900 e-mails were marked as unread. The user keeps track of his job.. by which e-mails are read or unread. Bad Idea.... but.... he didn't a

  • Will another website try to contact you to update your browser.

    When running firefox, another window develops (I don't think it is a popup) with the following address: "http://www.browser-fast.com/Firefox/". I says that version 24 is not up to date etc. and to download and run a .exe file. It is very confusing be

  • GREEN SPOT ON INDOORS PICTURES

    i am at the 8th phone by know with the same issue,green spot in the midle of the picture,just wondering is this normal on the iphone 4 everybody has this issue? i am so tired of this phone and give up swaping the phones,there will be some software fi

  • E-Commerce Product Photos

    Hi All.......... I'm looking for an extension for my e-commerce site. I want to be able to display several product photos/thumbnails on the product page. It would be nice if the photos had a fancy way of changing, so when the thumbnail was clicked, t

  • Mobiles datennetzwerk geht nach Upgrade auf IOS 5 nicht mehr

    Hi, nach dem Upgrade auf iOS 5 geht plötzlich meine mobiles Datennetzwerk nicht mehr. Habe eine aon Sim Karte (mit der es bis dato keinerlei Problem gab) und sehe auch, dass ich 3G zur Verfügung habe. Auch die APN Einstellung sind die gleichen wie vo