How to flush DNS without root privileges
location: ubuntuforums.com - date: September 28, 2016
Is it possible to flush the DNS without root privileges? Would like users of a community desktop to do so occasionally. Currently I am using sudo /etc/init.d/nscd but I am not always there.
OR would it be possible to run this on boot without user interference?
How to read HD serial in Linux without root privileges?
location: linuxexchange.com - date: November 12, 2013
I am building a C/C++ program which needs to read the HD serial. I am aware that if I run these commands:
hdparm -i /dev/sda | grep -i serial
/sbin/udevadm info --query=property --name=sda | grep "ID_SERIAL"
I can get it, the first requires root permissions but the second doesn't.
However, my application cannot access external programs, and it cannot require root privileges, so is there a C/C++ linux library that has a function that returns the HD serial? Or is there any other way that does not require running a program?
How to install Bioconductor packages without root privileges?
location: linuxexchange.com - date: January 1, 1970
I need to use BiomaRt, preferrably the version in the 3.1 release. See: http://www.ensembl.info/blog/2015/06/01/biomart-or-how-to-access-the-ensembl-data-from-r/
I tried to follow the installation instruction in the aformentioned page to run the program in a Linux-based server. Also, I tried this one: http://www.bioconductor.org/install/#install-R, but, unless root permission is given, they won't work. I have loaded other packages using this approach https://linuxishbell.wordpress.com/2010/12/10/install-r-package-without-root-accesson-linux/, but they seem unfited for my case. What is the most recommendable thing to do? I have searched the internet, but little advice by Bioconductor team and user is provided in such case.
Opening a POSIX message queue in Linux without root privileges
location: ubuntuforums.com - date: December 10, 2009
Hello All, I am writing a multi-threaded application in Linux that I would like to be POSIX compliant. I would also like to use POSIX message queues to synchronize activities and pass data between threads. My problem is that the message queue open call fails unless I run the application as root (using sudo ./my_test_app).
The open statement is as follows:
my_mq = mq_open("/mymq", O_CREAT | O_RDWR, S_IRWXU, &mq_attr);
The mq_open man page specifies that the queue name must be of the form “/somename”. If I had to guess, I think the issue is a file-system permission issue. Though I do not have any problem at all using the POSIX sem_open or shm_open commmands which require a similar resource 'file' naming convention.
I have flailed with this issue for quite a while now trying all manner of permutations on the open statement, mounting the message queue first on the command line and changing the ownership to me, and many other things.
Any insight as to
shutdown, reboot, without root privileges?
location: ubuntuforums.com - date: October 20, 2008
the title nearly says it all, the situation is, I'm using openbox, and I've followed this guide, and got no luck.
added
ALL ALL=NOPASSWD:/sbin/shutdown
to /etc/sudoers and still needs a password to run the shutdown command, I'm suspecting that the line is faulted some how.. or maybe I'm not understanding what the line is suppose to do, doesn't it give all users the ability to run that command with no password what so ever?
Fedora 12 Lets Users Install Signed Packages, Without Root Privileges
location: ubuntuforums.com - date: November 19, 2009
From the Slashdot article:
"The new default policy for Fedora 12 allows local, unprivileged users to install signed packages without root access. This change apparently went mostly unnoticed until after the Fedora 12 GA release, at which point it sparked a mailing list thread that is, as of this writing, over 100 posts long."
Fedora 12 Lets Users Install Signed Packages, Without Root Privileges
location: ubuntuforums.com - date: November 19, 2009
From the Slashdot article:
"The new default policy for Fedora 12 allows local, unprivileged users to install signed packages without root access. This change apparently went mostly unnoticed until after the Fedora 12 GA release, at which point it sparked a mailing list thread that is, as of this writing, over 100 posts long."
install .deb without root privileges?
location: ubuntuforums.com - date: May 21, 2010
Tried to search but didn't come up with any threads on this. Apologies if I missed something.
Just wondering. It seems like it is potentially a security issue that all .deb packages require root permissions to be installed. (At least I think this is true, right?) I'm sure there may be some very good reasons about what details of the package manager require access to which databases, etc.
But shouldn't there be a way to create non-root-installable packages for particular kinds of "applications" that wouldn't require root priviliges for installation otherwise? I don't care if they're called something other than .deb, would probably make sense to differentiate them.
It seems like there are obvious candidates for things like this. Themes, screensavers. Things that one typically downloads and drops into a non-root location. Even potentially applications that you could install in your home directory but not system-wide.
The issue, as I see it, is that there are
how do you get root privileges in ubuntu 7.04
location:
ubuntuforums.com - date:
January 18, 2010
I am unable to work as root or equivalent in Ubuntu 7.04. su or sudo has no effect on the system.
It just says something like you have to be root after I type my password during setup.
I have added a 2nd user and I cannot switch to the other user in the terminal.
Even in GUI, the password set up originally does not give me any power to modify.
I give below failure with su, unfortunately, I did not copy the computer's reply with 'sudo' and 'sudo su'.
Could anyone tell me what mistake I am making?
[email protected]:~$ su
Password: (typed – password of 2nd user)
su: Authentication failure
Sorry.
[email protected]:~$ su
Password: (typed-password of 2nd user)
su: Authentication failure
Sorry.
[email protected]:~$
I am posting this question after checking the forums if a similar question has been posted.
How to programmatically gain root privileges?
location: linuxexchange.com - date: August 29, 2010
I am writing some software (in C++, for Linux/Mac OSX) which runs as a non-privileged user but needs root privileges at some point (to create a new virtual device).
Running this program as root is not a option (mainly for security issues) and I need to know the identity (uid) of the "real" user.
Is there a way to mimic the "sudo" command behavior (ask for user password) to temporarily gain root privileges and perform the particular task ? If so, which functions would I use ?
Thank you very much for your help !
please wait...
Page: 1 2 3 4 5 6 7 8 9 10