Ubuntu :: Admin / Root Rights Login To Edit And Read Files

Feb 12, 2011

I'm a new Ubuntu user and a Python programmer, it's the first time that I use Python in Ubuntu so it's a bit confusing me. If I want to save a Module or something in a specified map, I get 'Errno 13', it says that I don't have permission to edit, do thing in that map. And this is also for importing files with Python. I logged in from Terminal with 'sudo -i' and closed Terminal, but the problem keeps repeating. How do I login as Admin or Root and stay as Admin or Root? I need right to edit/read files as well as root and normal user.

An example:
Python file:
test.py ->
test = open('/a.txt', 'w')
test.write('Test - Test - Test')
test.close

When I execute this, I get in the Python IDLE the 'Errno 13' problem and below the 'Errno 13' it says that I don't have permission. Who know how to stay logged in as root, even if the user has not logged in or isn't this possible, if it isn't then I just want to get files moving, editing/erasing etc.

View 9 Replies


ADVERTISEMENT

Programming :: C++ Codes To Check Whether User Is Root Or Has Admin Rights

Jan 8, 2011

One of the feature in my application involve changing of hardware setting. This require the user to be root or have administrative right.Before my application enable that feature, I want it to check whether the user is "root" or not, or whether user use "sudo" command to run the application or not, or whether the user has administrative rights or not.What are the codes or library that can do this?

NOTE: Sometimes, advanced linux user may set the user id of root to something else other than 0. So, getuid() may not be helpful in this case.

View 4 Replies View Related

Debian Multimedia :: Xfce - Login As Root To Edit Files ?

Feb 12, 2011

Trying 6.0 xfce on an old computer and need to know how to login as root to edit files?

View 2 Replies View Related

CentOS 5 :: VNC Admin Tools Or Root Login

Mar 17, 2010

I installed the VNC server by following [URL] (Remote login with vnc-ltsp-config). Everything works great for normal user but when I try to access admin tools in the GUI, nothing appends. If there is a way to authorize the root to log via VNC viewer.

View 1 Replies View Related

Ubuntu :: Read-only Root And Can't Edit Fstab

Apr 19, 2010

I was unable to boot into Ubuntu 9.1 today because the file system is now read only. When I check fstab, it shows "ro" but I can't change it because it's on a read only file system. I tried umounting the root then remounting with read/write access, but I was unable to umount the root. I also tried booting with a live CD, but all I can find is the root.disk file, I can't see any of the file structure. That's probably just how it is supposed to be, but I'm new to Linux so I found it strange. method to either change the disk to read/write besides this?sudo umount /mount -o remount,rw /The other option would be to somehow mount the disk image while using a live CD so that I can get to the fstab file and edit it.

View 9 Replies View Related

Ubuntu :: Lost Admin Rights After Updating To 10.4?

Apr 30, 2010

I cant change my user settings (password, login screen settings etc) after upgrading to 10.4 on my desktop pc. It says I don't have rights. I'm the only user, no other profiles. Otherwise seems to be working fine!

View 1 Replies View Related

Ubuntu Security :: 10.10 - No Admin Rights For Administrator

Oct 22, 2010

I am only user on this ubuntu 10.10 install. I have admin rights but when I try to change some settings via Ubuntu tweak unlock or alter user and groups via advanced tab I never get the option to enter my password. I have added a new user 'tempuser' via safe mode and this user is administrator too but everything works fine from this user..

Results from $ grep admin /etc/group
lpadmin:105:heath,tempuser
admin:119:firstuser,tempuser,heath

Results from groups
admin adm dialout fax cdrom floppy tape audio dip video plugdev fuse lpadmin sambashare
I am thinking of making a fresh install if I cant sort this but would like to fix if possible.

View 9 Replies View Related

Ubuntu :: How To Get Admin Rights And Change Default OS

May 4, 2011

I've got a Dell laptop with a dual boot with Ubuntu and Windows 7, but I want windows 7 to be the default OS. I can't seem to find anything on Ubuntu with any information. I had a look at some forums and it said I need to go into admin, but I don't think I have it. Does anyone know how to get Admin rights and how to change the default OS?

View 4 Replies View Related

Ubuntu :: Somehow Lost Ability To Gain Admin Rights

Feb 2, 2010

I am semi new to linux and i was getting the hang of it until just recently. I'm trying to do some web design using php and mysql. In my reference material (the all in one desktop reference {for dummies}). At some point I needed to do something in /var/www but I ran into a permissions problem so I typed:
Code:
chgrp -v -r guy0203 /var/www
405 chgrp -v -R guy0203 /var/www
406 chown -v -R guy0203 /var/www

Afterwards in some subsequent step it suggested putting the files in /usr/src/mysql. Since I didn't have that folder I used mkdir and created it. Then I tried adding the files I needed to that folder and got denied on the grounds of not having permissions once again. So tried something like this:
Code:
451 chmod 777 /usr/
452 sudochmod 777 /usr/
453 sudo chmod 777 /usr/

It was a 755 originally but I couldn't copy those commands. It turns out as that I had two terminals open in different desktops. one of them was a root terminal. It was at this point that realized that I was in that root terminal and decided I was done 'learning' for the day. I decided to listen to some music (which is located in my windows partion) and ran into a problem. The prompt that pops up to normally asks me for my admin PW to mount the drive. Now just vibrates like an incorrect entry was received, says authentication error and says I am not authorized to mount that drive then I went back to terminal to fix it, and when I tried to elevate myself to SU:

I got this:
Code:
guy0203@guy0203-laptop:~$ sudo su
sudo: must be setuid root
guy0203@guy0203-laptop:~$

I don't know what to do now but I think I totally killed this OS. If so is there anyway to save things if I have to reinstall?

View 9 Replies View Related

Ubuntu :: Time On Custom Distro Without Admin Rights?

Jan 10, 2011

I created a custom linux distro that originated from ubuntu server and I installed time-admin and want to change the time without admin rights. Is this possible?

View 1 Replies View Related

Ubuntu Servers :: Portable OpenVPN Without Admin Rights?

Feb 4, 2011

I have OpenVPN setup and running on my home server (Lucid Lynx). I move around alot and use Portable OpenVPN to connect to my home server. The problem is a lot of the computers I use I do not have admin rights to install the necessary routes to connect. So my question is this. Can OpenVPN be configured to use PPTP protocol? Because I have PortableVPN on my U3 flash drive and that VPN client does not need admin rights to run. If OpenVPN cannot do this, and from my understanding of its archetecture it cannot, but I must admit i am no authority on the matter. Can you suggest a workable solution, ie. install and setup this server software and use this portable client software.

View 1 Replies View Related

Fedora :: Root Login Works At Shell - Auth Error When Running Admin Tools

Jan 25, 2011

I login as normal user. I can 'su root' fine - password authenticates. However, If I try to run System->Administration->Users/Groups, when it asks for root password, it is rejected. When I run updater, it reports failure to authenticate, but doesn't even ask for root password beforehand. Is there a cached password someplace?

View 7 Replies View Related

General :: Assigning Admin Rights To Apps?

Sep 30, 2010

I am using linux mint and have installed Netbeans on it but whenever I run netbeans from accounts other than root it throws an error for not having permission to start glassfish server of netbeans. I also tried running this application using run as administrator option but then the application does not start.

So is there a way to assign netbeans admin rights permanently so that whenever I start this application from other accounts I should not face this error?

View 2 Replies View Related

Red Hat / Fedora :: Possible To Make Install With Just Admin Rights

May 25, 2010

I have moved to a new place and they expect me to work without root access to my machine, but I need to compile and make some software. However I get the following error:

mkdir: cannot create directory '/usr/local/ope': Permission denied
chmod: cannot access '/usr/local/ope': No such file or directory
mkdir: cannot create directory '/usr/local/ope': No such file or directory
chmod: cannot access '/usr/local/ope/bin': No such file or directory
make[1]: *** [/usr/local/ope/bin] Error 1
make[1]: Target '_installall' not remade because of errors.

I have been allegedly been given admin rights - but do I need root to do this?

View 4 Replies View Related

Server :: Giving AD User Local Admin Rights In Ubuntu

Jul 16, 2009

I'm having a bit of a problem after joining Ubuntu 9.04 to my company's Windows Domain. I can log in and use sudo just fine but I don't have access to certain things in my menu (i.e. "Add/Remove Software") and I can't open the User Manager. I manually edited the /etc/group file as root and added my username (username@domain) to the appropriate groups but still no luck.

View 2 Replies View Related

General :: How To Give Full Admin Rights To New User?

Jul 14, 2011

I have created a new user using sudo adduser "user1" from the root .but this user does not have full admin rights...How to give full access to this user1?

View 3 Replies View Related

General :: Read EDIT Text Files?

Jan 24, 2010

I'm needing to read the Adam's Assembly Tutorials, that are old EDIT *.txt files, I'm on Linux and I need to read this files.What can I do?Is there any GUI editor that can read the files?There is any way to convert them into another file that is more modern1?

View 2 Replies View Related

Server :: Windows 7 Local Admin Rights Using A Samba 3 Domain Controller?

Jul 23, 2010

i have a ubuntu server box with samba 3 as domain controller with all windows 7 clients.i am wanting all users to have local admin rights so they can install programs etc.

View 1 Replies View Related

General :: How Can I Install A More Modern Version Of GNU Utils (coreutils) On Debian Linux With No Admin Rights?

Jul 1, 2011

I would like to install a more modern version of GNU utils (coreutils) on a debian linux system where I have no admin rights. Is there a way to do that?

The rationale is that I need a more modern version to the one installed in the system where I intend to run my analysis. I am trying to use "sort -R" or "shuf" to randomize lines in a big text file.

View 1 Replies View Related

Ubuntu :: User Rights In Apache2 - Cannot Edit Anything

Dec 19, 2010

I'm new to Ubuntu and wish to use the system in combination with Apache/mySQL/phpMyAdmin. I managed to get phpMyAdmin working for now. Also mySQL database seems to work. Only problem is Apache2. I can start the server and it is working. However in the folder /var/www/ where all site files are stored, I can not edit anything. I have been reading about sudo nautilus which did allow me to change administrator rights for the folder, but still I do not get it working to display other than the default index.html page. Is there a manual or quick solution for me so I can use apache with Ubuntu?

View 2 Replies View Related

Fedora :: How To Remotely Edit Root Files

Dec 31, 2009

I have rented a remote dedicated fedora 7 system. The service provider provisioned the system and does not allow direct "root" access to the system.

I currently use putty to login into "user1", switch to "root" using su -, and then edit the file.

I would like to edit the "root" file directly from my home XP system which has a SFTP connection to the remote fedora 7 system (using Aptana RadRails).

I am not sure how to do that. I had 2 ideas but I am just guessing and afraid to proceed with so little knowledge.

I considered editing /etc/group and changing the line
from
root:x:0:root
to

[Code]...

View 5 Replies View Related

Fedora :: Can't Open Kword As Root (need To Edit Config Files)?

Sep 14, 2010

Always had this problem on F13... if I run kword from console as root I get.kwordkword(14580): Session bus not found

KCrash: Application 'kword' crashing...
sock_file=/root/.kde/socket-icebox/kdeinit4__0
Warning: connect() failed: : No such file or directory

[code]...

View 4 Replies View Related

Fedora :: Unable To Edit The Files Under Root Directory Of Apache?

Jun 12, 2011

why i m unable to edit the files under root directory of apache ?and how to fix that plz tell me ?

View 3 Replies View Related

Debian :: Edit File As Admin?

Apr 2, 2011

I logged on, opened the terminal an logged on as su no problem Could not open the document I wanted to edit. I am trying to switch from USB 0 to USB 1 so I can listen to my Bose Speakers used to be Windows tech. Many years ago.

How do I open the file edit the file save the file. can I log on as admin and use text editor.

View 4 Replies View Related

OpenSUSE :: No Rights To Access DVD, Even As Root?

Jun 1, 2010

When I insert some homemade DVDs of a friend, I can't view its contents. DVD works fine on windows XP, but not on opensuse. Dolphin gives an error: access denied to /media/071114_1638.I can't do a chown command because dvd is read-only...And when I do an ls -l I get:

Code:
ls -la /media/071114_1638/
ls: can't access /media/071114_1638/.: Permission denied
ls: can't access /media/071114_1638/..: Permission denied

[code]...

View 9 Replies View Related

Ubuntu :: Give Chmod Rights To Another User Using Root?

Jul 18, 2011

I have my own 16GB sandisk cruzer flash drive, I've already mounted him and can read on my own user, but I can write on it only using root. how can I give my user Chmod +x on the folder /media/XXX ?

View 7 Replies View Related

OpenSUSE Install :: Edit Some Files In /usr . So Did "chown -R Username /usr" As Root?

Jun 11, 2010

I was trying to edit some files in /usr . so I did "chown -R username /usr" as root . after editing, I did "chown -R root /usr" !!!!! it made me unable to open Yast and VirtualBox and many other features and applications . is there anyway to fix this ? I think some files in /usr was not owned by root,

View 4 Replies View Related

Security :: Kernel Flaw Coughs Up Root Rights

Oct 21, 2010

Quote: The open-source Linux operating system contains a serious security flaw that can be exploited to gain superuser rights on a target system. The vulnerability, in the Linux implementation of the Reliable Datagram Sockets (RDS) protocol, affects unpatched versions of the Linux kernel, starting from 2.6.30, where the RDS protocol was first included.

According to VSR Security, the research outfit that discovered the security hole, Linux installations are only vulnerable if the CONFIG_RDS kernel configuration option is set, and if there are no restrictions on unprivileged users loading packet family modules, as is the case on most stock distributions.

View 3 Replies View Related

Server :: Can't Seem To Remove Rights For A Remote Root Connection?

Apr 2, 2011

I can't seem to remove rights for a remote root connection. Below you can see that the rights are present before and after the successful revoke command. I am using the correct command.

[Code]...

View 1 Replies View Related

Fedora Security :: Log Files Empty - System Does Not Allow Root To Login ?

Feb 2, 2010

For a month or so now, I have been enabling ssh and opening port 22. I cron'ed the start and stop commands to leave them open only a few hours a day. After a bit, I checked my logs to find that some IP or another was attempting to brute force my root account.

I took little real threat by the offense.

(1) my system does not allow root to login and

(2) it would cut them off sooner than later when my system issued the stop command.

fast forward

Today I log in to find that all of my log files, as viewed from the gnome log file viewer, were empty of entries from about noon yesterday and prior.

Though I haven't noticed anything at all out of the ordinary with my system, I would like to get more opinions on the matter. Would there be any conceivable way that this was an automatic system routine, a clean up action of something? Additionally, if I was indeed the victim of a hack, what can I do to further protect my system (keeping in mind that I do want to access my system via ssh from time to time)?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved