root

How can I gain root access on a Mac OS X system without wiping the OS?

My father died recently and I've inherited his Mac. I'd love to put it to use in my own life, but I don't want to wipe its brains out just so I can reconfigure it to use in my network, etc. His old files are historically important to meI trust you can understand my desire to keep them. I can log in as I had an account on the machine bef...

Make python enter password when running a csh script

I'm writing a python script that executes a csh script in Solaris 10. The csh script prompts the user for the root password (which I know) but I'm not sure how to make the python script answer the prompt with the password. Is this possible? Here is what I'm using to execute the csh script: import commands commands.getoutput('server sto...

Storing web server images in windows C drive

I am running tomcat and I have some custom images which when I store on my C drive do not show up.If I move them to webapp root foder, they r fine but I do not want these images to end up in the war file.As I am using Windows symbolic link is not an option. Any idea as to how I can make the images show up without storing in the webapp ro...

Is there something between a normal user account and root?

I'm developing an application that manages network interfaces on behalf of the user and it calls out to several external programs (such as ifconfig) that requires root to make changes. (Specifically, changing the IP address of a local interface, etc.) During development, I have been running the IDE as root (ugh) and the debugger as root ...

Dealing with relative filepaths in ASP.Net and Masterpages

This may be a painfully simply question for which I will be mocked but I am having difficulty in using filepaths in masterpages. I believe this is because if a page in a sub-directory to using the masterpage then the filepath is incorrect. To fix this I need to get the filepath from the root but I can't seem to get it working. I tried:...

Difference between Root Namespace and Assembly Name

What's the difference between the two..?? ...

How to compute the nth root of a very big integer in python

I need a way to compute the nth root of a long integer in python. I tried pow(n, 1.0/3), but obviously it doesn't work any ideas ? UPDATE: By long integer i mean REALLY long ints like: 11968003966030964356885611480383408833172346450467339251 196093144141045683463085291115677488411620264826942334897996389 4850462628472657692808832376...

Is there a way for non-root processes to bind to "privileged" ports (<1024) on Linux?

It's very annoying to have this limitation on my development box, when there won't ever be any users other than me. I'm aware of the standard workarounds, but none of them do exactly what I want: authbind (The version in Debian testing, 1.0, only supports IPv4) Using the iptables REDIRECT target to redirect a low port to a high port (...

How should I log from a non-root Debian Linux daemon?

I'm writing a new daemon, which will be hosted on Debian Linux. I've found that /var/log has root only write permissions, so my daemon cannot write log files there. However, if it writes there, it appears it will gain automatic log rotation, and also work as a user might expect. What is the recommended way for a daemon to write log en...

Is there a way to read environment variables of other processes using Perl and in a Linux or Solaris environment?

In Perl, I need to read the environment of other processes. The script is running with root privileges. The script will be running in both Linux and Solaris. I would like a solution that's mostly platform agnostic, at least between Linux and Solaris. In Linux, examining the /env/<proc_id>/environ can get me the answer. I would like ...

Python, ROOT, and MINUIT integration?

I'm a modest graduate student in a high energy particle physics department. With an unfounded distaste for C/C++ and a founded love of python, I have resorted to python for my data analysis so far (just the easy stuff) and am about to attempt backing python scripts against ROOT libraries and, particularly, utilize MINUIT for some paramet...

How can I boot OpenSolaris x86 into single-user mode?

Modern OpenSolaris is configured to disallow root logins during normal boots. It is only possible in single-user mode. However, many instructions online simply say to add "-s" to the end of the default grub boot arguments, which leaves a graphical boot progress display in an endless loop and never enters the single-user mode console. ...

Bash scripting and user home from root account (Linux)

I'm writing an install script in bash for an application on Linux. This script copies some files into /usr/bin and /usr/share, so it needs to be executed by a root user, furthermore it makes an hidden directory in the $HOME dir for configuration files. Here is the problem: if a normal user wants to install the program, he needs to be r...

FileUploads and rooted directories

The FileUpload control requires me to provide a rooted directory in the SaveAs() method. However, I would much rather the uploaded files go into a virtual directory, such as "~/UserFiles/[username]/[filename]". Is there a way for me to accomplish that? ...

How can I change my context root in WebWork?

I am currently working on a huge web application consisting of JSPs. Also i use WebWork framework. Until now the context root of my application was "/". Now I want to change that to "nstat". How should I handle the relative and absolute calls from my JSPs? ...

self-signed certificate issue

Hello everyone, I am doing self-signing certificate in my test environment. Here is more details about what I am doing. http://www.hanselman.com/blog/SigningPowerShellScripts.aspx My brief steps are (the purpose is to establish trust connection between computer C and computer A based on certificate), Making computer A a root CA by u...

Root servers for web development - how much power is enough?

I think this question has not to do with programming in general, but nevertheless the answers might be interesting to other web developers. I just wondered how to estimate the minimum requirements to have a fast website. Obviously there are some facts that have to be considered like the expected number of visitors, the derived number of...

Best way elevate the privileges programmatically under different versions of Linux?

There is a standard way (working across Linux distributions) to launch a process (from another application) asking for the root password in order to elevate privileges? I tried to use gksudo (it is installed in ubuntu by default), but under other distributions (or under other desktop manager) it may not be installed. ...

How to set the DOCUMENT_ROOT and site root in my local PHP dev setup?

I'm doing a job for a guy with a site online. It's an alien site to me, and I'm slowly working through the strange code. I have MAMP locally and my http://localhost/ has many client folders coming off from that. Inside this code there is a lot of $_SERVER['document_root'] commands and references like which are just getting lost on my lo...

What Belongs to the Aggregate Root

This is a practical Domain Driven Design question: Conceptually, I think I get Aggregate roots until I go to define one. I have an Employee entity, which has surfaced as an Aggregate root. In the Business, some employees can have work-related Violations logged against them: Employee-----*Violations Since not all Employees are subject...