w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Configuration for Java binding for ZeroMQ (0MQ) with no root privileges on Linux
This can be overcome by adding --with-zeromq=/home/user/zeromq (installation directory of zeromq) ./configure --with-zeromq=/home/user/zeromq Other steps include export LD_LIBRARY_PATH=/home/user/zeromq/lib

Categories : Misc

Linux skip /root/.gvfs when executing df command with non-root user
I got the solution for my own question :) In df command you can pass the file system types which you would like to exclude, in this case it is 'fuse.gvfs-fuse-daemon'. So when I execute the below the command I no more get this message "df: `/root/.gvfs': Permission denied" df -x fuse.gvfs-fuse-daemon For more details one can look into df --help option.

Categories : Linux

How to use root privileges in my app
This is what I have found you must specify android.permission.FACTORY_TEST permission. docs here For accessing root permission you can use p = Runtime.getRuntime().exec("su"); Source : Here

Categories : Android

How to gain root privileges for iOS app?
What step 4 is telling you: Open the original executable file and delete its contents (the contents are now stored in the previously copied and renamed binary). is simply that you have moved the executable file for your app to a new filename, and you should replace it with a script with the name of the original executable. Example If you build an app named HelloWorld, Xcode will create a HelloWorld.app directory, with a file named HelloWorld inside it, which is executable. The answer you link to suggests basically renaming the executable to something like MobileHelloWorld. Once you've done that, create a new file in the HelloWorld.app directory called HelloWorld, and edit it with a text editor to give it this content: #!/bin/bash dir=$(dirname "$0") exec "${dir}"/MobileHello

Categories : IOS

Granting privileges to root won't let me login?
Looks like you may need to get a bit clever. If you can download a zip of the version of mysql you have installed and unzip it somewhere not in you actual installed mysql location. You can then rename the existing /data/mysql folder and copy the vanilla /data/mysql directory over your now messed up one. This should reset you to its initial state. You will of course have to re-create all the other mysql accounts ( if you created any ). And this time I would create a new account for your remote access, and if necessary give that all privilages.

Categories : Mysql

mysql root@localhost has no privileges
Well, it seems that this is your problem (emphasis mine): CONSOLE: [SEVERE] Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO) Apparently you didn't specify a password in the connection details.

Categories : Mysql

mysql reset root user privileges
I have had issues with GRANT ... TO 'user'@'%' ... before. Try to additionally issue the following GRANT statement: GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION; For me, this did the trick. Somehow mysql seems picky when it comes to localhost

Categories : Mysql

Fabric sudo as another user with root privileges
1: You said MyAppUser wasn't in sudoers. So it can't run sudo. Use the debug flag to see this, but you're essentially doing this: $ ssh MyAppUser@myapp.mycompany.com "sudo -u me 'sudo cp ...'" So if MyAppUser can't sudo at all, then fabric connecting as this use can not sudo. 2: If you have multiple users able to connect to this machine, use the settings() context manager or the execute() function and supply me (see prompted user) as the user to connect with in the host string. eg: execute(setup_task, host="me@myapp.mycompany.com") Where setup_task is the task doing the copy into the init dir.

Categories : Bash

php exec fails even though _www has root privileges
The open command (as well as any other way of opening TextEdit) only work in the context of a GUI session; the web server is not part of your session, so it has no way to open something within your session. There are ways to solve this, but they're really really ugly. They involve switching from the _www user to root (probably with sudo), attaching to the context of some process running in the GUI session (launchctl bsexec somePID somecommand), then maybe also having to switch to the session owner (sudo -u loggedinuser), then running the open command. This is ugly because what you're trying to do is really unnatural. Having something in a web server trigger a GUI edit session really just doesn't make any sense. Please rethink what you're trying to do and why.

Categories : PHP

No "Privileges" in PHPMyAdmin, already tried deleting cookies/using FF/loggin in as 'root'
It's normal that phpMyAdmin does not show you the Privileges (or Users in recent versions) tab, since you're not privileged. Usually, on shared servers, hosting providers also use a shared MySQL server, thus they won't allow you root access. They usually also allow MySQL access only from their web server and not from your home machine, as an additional security measure.

Categories : Mysql

Unlimited users Wifi AP android mode (no ROOT privileges)
The Android limit is hardcoded at a system level, and probably at a protocol level too. Modifying it will at the very least require root privileges, and maybe even a direct rewrite of the Android code at the system level.

Categories : Java

Access Denied for User 'root'@'localhost' (using password: YES) - No Privileges?
Use the instructions for resetting the root password - but instead of resetting the root password, we'll going to forcefully INSERT a record into the mysql.user table In the init file, use this instead INSERT INTO mysql.user (Host, User, Password) VALUES ('%', 'root', password('YOURPASSWORD')); GRANT ALL ON *.* TO 'root'@'%' WITH GRANT OPTION;

Categories : Mysql

How to create a .app warpper for a jar file using jar bundler that runs as root
Yeah, You can use applescript. Forgive me, there might be a better way to do this, but this is how I would do it (its more fun this way too). This runs a shell script Process proc=Runtime.getRuntime().exec("shell-script-here"); Then you take the next step, run an applescript through the shell script like this... Process proc=Runtime.getRuntime().exec("osascript -e 'applescript-here'"); You have to be really careful to backslash quotations and whatnot... but this line should prompt a password dialog Process proc=Runtime.getRuntime().exec("osascript -e 'do shell script "" with administrator privileges'); Although that might seem confusing, when I say 'do shell script ""' to mean, do nothing, but it will still prompt for a password. Given that I don't know what your program does, yo

Categories : Java

How can I display the folders that require root acess in android?
You cannot do this without rooting the device (which simply means gaining required root access level). That's basically the reason for permission system - to keep you away from the places you should not be looking in.

Categories : Android

Is sudo-ing tomcat's startup with a non-root user the same as running it as root?
Do be aware that the recommended solution to run tomcat on port 80 is to use mod-jk with the Apache web server, not to have tomcat listen on port 80 directly.

Categories : Unix

Root immediate child nodes icons not visible when hiding root
JTree#setShowsRootHandles(boolean newValue) controls the state of the handles for root elements. Normally, this is false. Try changing to true

Categories : Java

Reset MAMP Pro username and password to root/root
Assuming you still know the password, you can change the password back to root using /Applications/MAMP/Library/bin/mysqladmin -u root -p password root It'll prompt you to enter a password again, after which it'll be reset to root

Categories : Mysql

Read and Write root folder wihout root
You can use run-as on some devices to execute commands as a particular package. Google have fixed this on Jelly Bean so it no longer works: adb shell run-as app.package.name cp /data/data/package.name/file.txt /sdcard/ exit adb pull /sdcard/file.txt ~/ Here is a good article explaining file access in Android without root permissions, including a one-liner for the above script. It details how to use the new backup command: backup -f ~/data.ab -noapk app.package.name And how to extract the contents of the resulting .ab file: dd if=data.ab bs=1 skip=24 | openssl zlib -d | tar -xvf - You will most likely need the android.permission.BACKUP permission.

Categories : Android

USB 1.1 UHCI and root hub on Linux
Yes, you are on the right track with your thinking. There is no separate hub device. With simplifications: USB architecture distinguishes Host and Device. Within Host there is Host Controller. Yours is of the type UHCI. Root hub is part of the host controller architecture. Succinct description is here. Full precise details may be found in USB 2.0 specs. It may be noted that the root hub abstraction is integral to USB Host specifications, it is not just the linux USB stack that uses this abstraction. Software such as linux will know how to probe the host controller hardware, it will read registers giving necessary details e.g. how many ports are present. Some additional good info in top answer here.

Categories : Linux

SVN (svnserve) virtual root --root= not recognized
svn+ssh handles the whole transaction including writing and reading the files so it ignores the --root parameter in svnserve. Here is how to fix it over at serverfault -- Basically you just make svnserve into a script that calls svnserve with the proper variables.

Categories : Svn

How do I open the root.disk in linux?
You need to mount this image before you can access it, try the following: mkdir olddisk sudo mount -o loop /path/to/root.disk olddisk You should now be able to access the data inside this container.

Categories : Linux

Linux boot process -- iniramfs & root ()
With initrd there are two options: Using pivot_root to rotate the final filesystem into position, or Emptying the root and mounting the final filesystem over it. More info can be found here.

Categories : Linux

How to get the memory usage of a process in linux without root permission
I'm not sure exactly what you are really looking for-- do you want to know the amount of memory that a process is currently using? If so, then look at /proc/<pid>/status and examine the VmRSS line. That's the number you want (in this case, RSS means "Resident Set Size" if you're curious). That line should be parse-able in a high-level language like PHP. However, for a lower-level language like C, it should be easier to parse /proc/<pid>/stat which has the same values but each is separated by a space and there are no labels. If you don't have permission to read the file, that means that the server process is running under a different user than you are logged in as. You will need to work with the hosting provider to get that resolved, or figure out how to get the server process

Categories : C++

effects of initializing git repository on linux root directory 3:)
Instead of using git you could use a filesystem that support snapshots, like ZFS or BTRFS it will be more efficient and it's usage will be transparent to you.

Categories : GIT

How to run tshark commands from root mode in linux using TCL script ?
You have to either elevate the privileges of your tshark process via sudo (or any other available means) or run your whole script with elevated privileges. One way to do that which might be simpler than sudo as it would require zero customizations is to write a super-simple C program which would just run /usr/bin/tshark with the necessary arguments and then make that program setuid root and distribute along with your Tcl program. That is only needed if you need portability. Otherwise sudo is much simpler.

Categories : Linux

How to change the default from address of email send by Linux root
You should be able to use the -f flag of the sendmail command to specify the envelope from address, and you should me able to specify the meesage from address in headers of the message itself. For example: /usr/sbin/sendmail -f from@from.com to@to.com < message.txt

Categories : Linux

How do I make a file permanently read-only on Linux so even root can not edit it?
There is an "immutable" bit for files: http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html Programs (even running as root) won't be able to tamper with the file. Of course, root can un-do the bit, but most programs (especially non-malicious ones) won't get past it.

Categories : Linux

How can i setup read permission in spool email for root in linux
Under some OS, the /var/spool/mail files have read permission for group mail, which could then be used for Nagios to access it (by placing nagios into the mail group). However it seems that your OS does not do this. Rather than change permissions on the file, I would suggest you instead use 'sudo'. Add a line to your sudoers file of the form nagios ALL = (root) NOPASSWD:/usr/local/sbin/mycommand which will allow you to run sudo /usr/local/sbin/mycommand without a password as the nagios user. You can then use this in your command definition or embed it into your script.

Categories : Linux

Document root element "hibernate-configuration", must match DOCTYPE root "hibernate-mapping"
DOCTYPE for <hibernate-configuration> should be: <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

Categories : Hibernate

is there any method to draw a tree with a root , the root's previous nodes and successor nodes?
Couple of ideas you might find useful: You can use the tree layout to place the nodes in the canvas, create link objects pointing back and forth, then bind the link objects to a diagonal. http://www.durablejs.org/examples/flowchart/1/admin.html You can also use place the nodes using a pack layout, create the link objects pointing back and forth, and bind the links to a Bezier curve. http://www.durablejs.org/examples/statechart/1/admin.html You can find the code for the graphs above: https://github.com/jruizgit/durable/tree/master/lib/durabjevisual.js

Categories : D3 Js

linux: running self compiled kernel in qemu: VFS: Unable to mount root fs on unknown wn-block(0,0)
maybe your system image file is bad and can not be mounted. You may try these command to mount the image file and check if it is a valid root file system for linux. losetup /dev/loop0 /var/lib/libvirt/images/Debian.img kpartx -av /dev/loop0 mount /dev/mapper/loop0p1 /mnt/tmp

Categories : Linux

How can I remove the root node and make the first child the new root node with XSLT?
Add a rule to the identity transform that adds nothing to the result tree for your document element other than the processing of its children: <?xml version="1.0" encoding="US-ASCII"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/*"> <xsl:apply-templates select="*[1]"/> </xsl:template> <xsl:template match="@*|node()"><!--identity for all other nodes--> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet> (edited to be agnostic to the name of the document element) (edited again to only preserve the first child element of the document element)

Categories : Xml

Including from child theme root or else include from parent theme root
To answer your question directly based on your sample, i would not check to see if the file has been placed in the child theme. If a child-theme developer has customized the file, they can simply declare the function and include their own file (wherever they place it). There is no risk of code duplication because your sample function is simple enough. Even if you simplified your code for the purposes of placing it here....you can always keep includes wrapped in a very simple function that can be declared by a child theme. This will keep PHP running efficient and not having to check for files all the time.

Categories : Wordpress

Defining root of HTML in a folder within the site root folder
You need to set the base tag. If you add the tag in your page <head> like this: <base href="http://yoursite.tld/folder/"> it should display images and with sources relative to this base path.

Categories : HTML

I want to set authenticated users' root to a nested resource, their dashboard, instead of the home#index page non-authenticated users use as root
Option 1: In your dashboards controller, change to: @user = current_user @dashboard = current_user.dashboard This will also prevent users from seeing other user's dashboards. Option 2: Now, if users can see other user's dashboard fine, then change your route: root :to => "dashboards#find", as: :authenticated_root and in your dashboards controller: def find redirect_to user_dashboard_path(current_user, current_user.dashboard) end

Categories : Ruby On Rails

what 's difference between android system user and linux root user
As far as Linux is concerned, the system user is just a regular user (UID 1000). Android services however give it special permissions and you can get access to pretty much anything. Most services have code like this somewhere: private static final void enforceSystemOrRoot(String message) { final int uid = Binder.getCallingUid(); if (uid != Process.SYSTEM_UID && uid != 0) { throw new SecurityException(message); } } What that does is deny access to anyone who is not root or system. The shell user (UID 2000) (what you get when doing adb shell) is another user with a lot of power (member of many groups). Cf. system: $ su 1000 $ id uid=1000(system) gid=1000(system) groups=1003(graphics),1004(input),1007(log),1009(mount), 1011(adb),1015(sdcard_rw),1028(sdc

Categories : Android

Reference another Aggregate Root inside another Aggregate root?
By the sounds of it you have an Installation AR. When requiring an AR in another you should model the contained AR as a only the ID in the container or a VO if required. You need to have hard edges around your ARs. Back to the Order / OrderLine example :) An OrderLine seems to 'require' a Product but you shouldn't ever give a Product instance tot eh OrderLine. Instead only model, say, the ProductName and ProductId as a VO in the OrderLine. Now you have a distinct edge to your Order AR. Hope that helps somewhat.

Categories : Entity Framework

wrong child root name in rabl and can't set child root name
I've encountered the same exact bug, the problem seems to be setting the object_root to false. Following the comment of Bigxiang I have experimented a bit and found that this works fantastically: child( {:rsvp => :rsvp}, {:object_root => false} ) do extends "users/index" end Note both the round parentheses "()" and braces "{}".

Categories : Ruby On Rails

XDocument says Data at the root level is invalid?
You should use XDocument.Load not XDocument.Parse. That would be because XDocument.Parse expects to receive an XML string, while you are trying to load it from a URL. EDIT You also have problem with XML namespaces. Try this var xDoc = XDocument.Load(requestedURL); XNamespace ns = "http://www.w3.org/2005/Atom"; var count = xDoc.Descendants(ns + "entry").Count(); http://msdn.microsoft.com/en-us/library/bb343181.aspx

Categories : C#

Java jvm crashes without reason - runs with admin privileges
I would post this as a comment but I don't have enough rep. First of all can you tell us the version of windows you are running? 98/2000/XP/Vista/7/8? Take your application to another computer (with the same OS) and see if it crashes too. If yes try another OS from a different family (linux/mac). If the problem is isolated to a particular family of OS then the problem might be dependent to a particular method call in your program. If its just your computer then it becomes much harder to debug. If this problem happens to all OS families then suspect a JVM bug. If your using Windows Vista/7, try turning off UAC. Something about your user profile privileges might be blocking java from accessing a critical library (from the error dump User32.dll?). If this does solve you problems, once agai

Categories : Java



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.