Debian :: Sudo Results In Strange File Owner

Mar 16, 2010

I like the "Ubuntu" sudo philosophy and wanted to setup this sudo the same way on my Debian system. I was happy when I found that I just have to do the following:
-create a group 'admin'
-adduser christian admin
-visudo
-add the line: %admin ALL=(ALL) ALL

Then I tried sudo rm -rf / to check if sudo works. All worked fine. No, seriously, I can move around files that belong to the root and such, so sudo somehow works. But when creating new files with sudo, like e.g.
tar xzf myZippedTarball
these files belong to user 41034 and to the group users instead of root root:
drwxr-xr-x 7 41034 users 4096 2009-11-01 01:07 libsvm-2.9
Certainly, this is not the way I want to have. The user 41034 doesn't even show up in /etc/passwd...

View 2 Replies


ADVERTISEMENT

Ubuntu :: Sudo WGet Piped To TAR Has Wrong File Owner

Jan 4, 2010

I'm trying to download a file and extract it in one line, but the extracted file is owned by me instead of root even though I'm using sudo:
Code:
sudo sh -c 'wget [URL]'
If I don't try to extract the file, it is owned by root as I expected:
Code:
sudo sh -c 'wget [URL]'

View 1 Replies View Related

Server :: Owner Of A Directory Different Than File Owner?

Apr 21, 2009

How can I make a virtual host (right now I just use NameVirtualHost *:80) that will load the same page for every domain that matches imap.domain.com, smtp.domain.com, or pop3.domain.com?

View 4 Replies View Related

Ubuntu Networking :: PC Giving Strange Results When Being Pinged

May 27, 2011

Right then... all DHCP
PEGASUS 192.168.0.101
When being pinged from another PC aok, but also pings back on 192.168.0.100? When being pinged from itself using ping 192.168.0.101 (or 100) all is well - when pinged as ping PEGASUS is says following:

64 bytes from localhost.localdomain (127.0.0.1): icmp_req=1 ttl=64 time=0.033 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_req=2 ttl=64 time=0.044 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_req=3 ttl=64 time=0.042 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_req=4 ttl=64 time=0.040 ms
^C64 bytes from localhost.localdomain (127.0.0.1): icmp_req=5 ttl=64 time=0.042 ms

The IP says its 127.0.0.1 (home) WTF is going on>. Why has PEGASUS been assigned 2 ips, and when pinging using HOSTNAME why does it point to home?

View 9 Replies View Related

Ubuntu Installation :: 9.10 Upgrade Needs More Space / App That Results From Sudo Apt-get Clean?

Jan 27, 2011

forgive me for raising a common problem again, but I cannot find a fix in the other threads.
I am trying to catch up on upgrades. Step 1 is to get up to 9.10 from 9.04
Doing so however I am being told I don't have enough disk space
I present have my 35-odd GB HDD partitioned:
6GB for Ubuntu
28 for Data
and 1. or so for swap

evidently I underestimated my Ubuntu partition.

what can I do now?

I have run Computer Janitor (is that the application that results from Sudo apt-get clean? I did that but couldn't figure out how to "clean"?)

I have Gparted installed but I don't see how to use the Move/Resize option.

View 6 Replies View Related

Ubuntu Servers :: Entering Correct Password For Sudo Results In Segfault After 2 Attempts

Feb 2, 2011

I cannot sudo nor log into a second ssh session on my Ubuntu 10.10 server edition headless setup. Entering an incorrect password works as expected but the correct password gives errors, and on the second attempt a segfault. I recently changed my password as the old one was about to expire, that was 3 days ago, I can't find evidence that I have sudo'ed or logged in a second session since, I have been logged into it via ssh throughout all of it and I am still currently logged in. What should I do to correct this problem? I'm worried that by turning it off I will lose all access. Is the only option using a live cd to change the password?

[Code]...

View 1 Replies View Related

General :: How To Delete File Which Has No Owner

Jan 9, 2010

I am facing a basic problem in RHEL 5.2. Some of files in a mounted showing ? in place of owner and group owner.
root# find /data/abc -nouser
listing those files.
How to delete those files because
root# find /data/abc -nouser -exec rm -rf {} ;
showing error access is denied.

View 10 Replies View Related

General :: Owner Of File Cannot Remove It

Mar 16, 2010

I can't remove a file where I am owner of :

Code:
[jonas@webserver html]$ ls -l | grep file
-rw-rw-r-- 1 jonas jonas 3323 2010-03-15 20:33 file.php
[jonas@webserver html]$ rm file.php
rm: cannot remove 'file.php': Permission denied
The directory that holds this file is html :

Code:
[jonas@webserver mysite]$ ls -l
drwxr-xr-x 2 root root 4096 2010-03-15 18:32 cgi-bin
drwxr-xr-x 9 apache webusers 4096 2010-03-15 20:34 html

View 4 Replies View Related

Debian Configuration :: Sudo Apt-get Update Error / Malformed Release File?

May 13, 2011

I keep getting this error on my debian server (Buffalo Linkstation so there is no GUI):

Debian Linux Version 2.6.12.6-arm1
W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/Release  Unable to find expected entry  main/binary-arm/Packages in Meta-index file (malformed Release file?)
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/Release  Unable to find expected entry  main/binary-arm/Packages in Meta-index file (malformed Release file?)

E: Some index files failed to download, they have been ignored, or old ones used instead.Ive tried and tried changing the source.list to different repos but keep getting the same error over and over. Im really not sure what to do and I have no idea how to fix it. Its been working fine for the longest time.

source.list
#### Debian Main Repos
#deb http://http.us.debian.org/debian/ stable main contrib non-free
#deb-src http://http.us.debian.org/debian stable main contrib non-free
#deb http://security.debian.org stable/updates main contrib non-free
#deb-src http://security.debian.org stable/updates main contrib non-free

[Code]...

View 5 Replies View Related

General :: Cvs Import File Group Owner ?

Jun 11, 2010

This is about ubuntu 10.04

I can import projects to my cvs repository only when the repository set to group owner cvs. Which is fine to me.

But I found the project folder/files that I imported into the repository have group name other than cvs (in fact, that's my username). And that prevents others to check out my code.

View 3 Replies View Related

Security :: Best File Persmissions And Owner For Web Files?

Dec 13, 2010

What are the best file persmissions and owner for web files?

View 1 Replies View Related

General :: Viewing Owner Of File On Windows Share

Mar 16, 2011

I'm interested in viewing the owners of files on a Windows Server 2003 share (mounted on a Linux computer). These "owners" would be users in Active Directory. If it's not possible to see the username, I wonder if it will at least show a unique identifier. Currently it says all files are owned by root with an "ls -l".

View 4 Replies View Related

Ubuntu :: Cannot Login After File Owner Changed From Root To User

Mar 21, 2011

I used to use the root account for everything for more than a year then I moved to a user account for security reasons but almost all files had root as owner so I could not go 5 minutes without having to change to root and then change the owner of a file to my username to make it usable. I got fed up with this so I just changed the owner of every file on the system to my username instead of root.

command chown -R myusername * in the base directory /

Everything was fine until I restarted and the login screen became non functional and I got 2 error messages related to xsession and gnome errors. I think this is because the login screen might have its own user account and it cant access the files for the login process because it is owned by myusername. So my question is what is the user-name of the login account and what folders/files need to have their owner changed so the login process can work? I'm on 10.04 lucid.

View 6 Replies View Related

Ubuntu :: Make Sudo Act More Like The Debian Sudo?

Jul 2, 2011

I have read a lot of questions from people wanting to take Debian (or some other distribution) and make its sudo command act more like the way Ubuntu's sudo does. I want to do the exact opposite, I want to make Ubuntu's sudo command act more like the sudo command from another distribution. ie I want there to be one root password

View 8 Replies View Related

Red Hat :: Change The Owner Permission Of File As "read Only" When The File Is Rcp?

Nov 25, 2010

I am trying to change the owner permission of file as "read only" when the file is rcp remote copy ) from server to another for security reason. Any way to change to permission as readonly access for owner and group ( 550 )when transfer the file using the rcp command ? I tested but still retain the original permission as source file.

Version : RHEL 5.2
Command : #rcp(local file)(/destinationserver/
/folder/file)

[code]....

View 3 Replies View Related

Fedora :: Where SUDO File At / Add Myself As A SUDO'er?

Oct 11, 2009

Where is the SUDO file at, and remind me how do I add myself as a SUDO'er?

View 3 Replies View Related

General :: Performing Admin Task Like Changing Owner Of A File Through Shell Script

Apr 5, 2011

I want to automate my tasks of administrator using shell scripts like changing owner of a file which usually only the super user which requires password can change i want to do this thing using shell script how to do?

View 4 Replies View Related

Debian Configuration :: Strange - Running Php5 On Debian Lenny And Apache?

Jan 18, 2010

i do have a strange problem get running php5 on lenny 64 inside apache2. i had installed it as all instructions on the web does: # apt-get install php5 libapache2-mod-php5 php5-cli php5-common php5-cgi

apt has enabled php automatically, so
/etc/apache2/mods-enabled/php5.conf does have inside:
<ifmodule mod_php5.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</ifmodule>

[Code]...

View 3 Replies View Related

Fedora Servers :: LAMP Configuration - Strange PHP INI File

Nov 22, 2009

My installation went fine. Apache, PHP, and MYSQL all work independently. My trouble getting PHP to serve MySQL content. The first thing I did was look in the PHP.INI file to check that it was set up correctly. Then I discovered my install of PHP does not have the expected directives, namely extension_dir or any DLL comments where I can enable MYSQL. Instead my config file has a PHP.D directory. In that directory there are no files for MYSQL. I look at the PHP.net site and I can't find any info on how to write this file. And there's the issue of the missing extension_dir directive.

As I said, I visited the PHP.net site and could not find any specific manual pages explaining this change to PHP 5.2.11. I downloaded "the latest php.ini" development file from the site. As near as I can tell its for PHP 6.0.0 and it does have the extension_dir directive, and it still uses the DLLs in Dynamic Extensions section. (EDITED= The introduction of the PHP.INI file doesn't give a version number, however later under error handling there is a note: "as of PHP 6.0.0"). Why I can't find more information about this on any forum or at PHP.net?

View 14 Replies View Related

OpenSUSE Install :: Strange File In The Root Directory?

Jun 1, 2011

In a fresh install of 11.4 I see a file named "1" (the number "One") in the / (root) directory.

Code:
vodoo@host:/> ls -l 1
-rw-r--r-- 1 root root 0 May 31 11:29 1

Who creates this file and what is it good for?

View 9 Replies View Related

Ubuntu :: Nautilus File Manager Looks Strange In Lucid

May 7, 2010

I need some restoring my Nautilus File Manager back to its original state. I tried installing Elementary Nautilus but for some reason it was not working for me, so I uninstalled it but have been having an issue with Nautilus looking like its former self. Now Nautilus doesn't display the "tree" on the left, there are no back/forward icons, and generally looking strange.Here's a picture to showcase my issue:

[URL]

I would love to use Elementary Nautilus but can not get it as my default file manager. Since I can't do that I just want Nautilus (the one that comes shipped with Ubuntu) to look and act like it's supposed to.

View 2 Replies View Related

Ubuntu :: Log File That Can Be Saved To Hhd With Memtest Results

Mar 23, 2011

I am running memtest due to memory issues, I am wondering if their is a log file that can be saved to the hhd with the memtest results, I am running memtest from the grub menu.I am running ubuntu 10.10

View 1 Replies View Related

Ubuntu :: Rsync Copy Results In Incomplete File

May 26, 2011

Using Ubuntu Server 10.04 LTS. I'm new to Ubuntu and testing Rsync. I successfully copied 3TB of data from a Win7 machine to an MDADM Raid5 array. All appears to be fine. Used a Win app for the copy. I then deleted a 250GB folder on the Raid5 array and recopied the data using Rsync. Rsync was executed via a Putty session on a WinXP machine. The source was an eSata attached drive (same drive used for the big 3TB copy) and the destination was the same Raid5 array. That copied just fine. I bit verified it with a Win7 app. Perfect.

I then used the following Rsync script to copy a single 26GB file from that same eSata drive back to (what I intended to be) the Raid5 array:
Code:
neil@ANTECUBSV:/mnt$ rsync -r -a -v -e ssh --delete /mnt/disk1/Test/ /mnt/Test
sending incremental file list
created directory /mnt/Test
./ C_VOL-S300-b001.spf
sent 3020267622 bytes received 34 bytes 50760800.94 bytes/sec
total size is 3019898880 speedup is 1.00
neil@ANTECUBSV:/mnt$ cd raid

Note that only about 3GB copied. No error messages were posted to the putty session. I made a mistake in the Rsync command, creating the Test folder directly in the mount folder rather than the Raid array, as I intended. That is a little strange, yes, but I would not think it would cause a partial copy? The /mnt folder is on my system drive, which had about 34GB available space before the copy, so comfortably would have had 6GB or so after.
The eSata disk is mounted as /mnt/disk1
The Raid5 array is mounted as /mnt/raid

I then recopied the file to the correct intended destination on the Raid5 array, which has about 400GB free space (plenty).
Code:
neil@ANTECUBSV:/mnt/raid$ rsync -r -a -v -e ssh --delete /mnt/disk1/Test/ /mnt/raid/Test
sending incremental file list
./
deleting 2010-07-05 Backyard Birds/Thumbs.db
deleting 2010-07-05 Backyard Birds/
C_VOL-S300-b001.spf
sent 11105775462 bytes received 34 bytes 50366328.78 bytes/sec
total size is 11104419840 speedup is 1.00
neil@ANTECUBSV:/mnt/raid$ df -h

Note that only about 11GB was copied, and this was confirmed with an ls -l command. Now I am correctly copying the file to the Raid array but it is still incomplete. I then copied the file back to the /mnt folder to see if the problem reproduces:
Code:
neil@ANTECUBSV:/mnt/raid$ rsync -r -a -v -e ssh --delete /mnt/disk1/Test/ /mnt/Test
sending incremental file list
created directory /mnt/Test
./
C_VOL-S300-b001.spf
sent 26327927554 bytes received 34 bytes 56558383.65 bytes/sec
total size is 26324713984 speedup is 1.00
neil@ANTECUBSV:/mnt/raid$ cd /mnt/test

This time I got my full 26GB file. Why I might be getting inconsistent results? This is quite troubling of course. I'd also be interested in basic a command line Linux diff app (that does file directory as well as bit level checking) if one is available.

View 9 Replies View Related

General :: Print Some Results In Text File Using Script

Feb 27, 2011

I am writing a script which would just print following kind of result into a text file (result.txt)

Code:
XYZ test Results
ID: <unique-id> Date: <date>
-------------------------------------------------
| Task | Result | Time |
-------------------------------------------------
| <task1> | <Result1> | <time1> |
| | | |
-------------------------------------------------
AD No: <adn> Generated Date: <tdate>

Above all the values of <something> are dynamic or predefined.

View 3 Replies View Related

Debian :: Strange Link Gets Me To Different Sites?

Apr 19, 2010

Trying again here.. no-one on reddit seems to respond..It initially happened here (it was deleted, you can try the lower links.) Sometimes one, sometimes both of these links gets me to 'attack sites', it starts with both, then to one, and then neither does it. I am on Debian Lenny, Both Iceweasel 3.0.6-3(firefox), epiphany2.22.3-9, elinks0.11.4-3 and firefox 3.6.3 sometimes do this for me. It doesn't seem to happen if you enter it into the adress bar, but it does when you follow it by clicking.[URL]..Someone else reported it too, from XP w/ Firefox. The adress bar tells me it is subreddits.org the but the screen doesn't. (Worry my computer is compromised..)

Links it send me too, something on 89.248.174.24, orcug.com, thindx46td.xorg.pl and a whole range of varying other sites. http://i.imgur.com/d7ZGv.png So can you reproduce/any idea what this could be? I do worry about having some malware on firefox and such, also besides this, but as i said, it happens with other browsers. I have add-on flashblock, noscript, redditreveal, socialite, trackmenot, had tree style tab until i found it wasn't usefull enough. I also noticed that control+k gets me to bol.com (wtf is up with that??), and there was the random site you get to when you misclick.(Which i was able to disable.) I am gradually getting more and more pissed off and suspicious about firefox. (as on my computer.)

Firefox also seems start reading/writing from disk suddenly. (I use iotop when i think it shouldn't be writing sometimes.) Perhaps i should try set something up to record what writes to disk.

View 2 Replies View Related

Debian :: Meaning Of Strange 'ls' Colours?

Mar 16, 2010

Anyone know what the 'ls' command means when it outputs the file name in red on black, with the permissions, owner, etc. all missing? The 'man' page was of no help. In the example below, from a DVD ROM, the third file was OK and I could read it. The first two could not be read, even as root.

?--------- ? ? ? ? /media/dvdrom/DVD_RTAV/VR_MANGR.BUP
?--------- ? ?? /media/dvdrom/DVD_RTAV/VR_MOVIE.VRO
-rwxrwxrwx 1 root root 132624 2007-09-20 02:18 VR_MANGR.IFO

View 5 Replies View Related

Debian :: Strange Backtrace On Ibm Thinkpad 600

May 10, 2009

I am reciving a strange backtrace furing the boot process of an IBM thinkpad 600 with debian lenny. The errors appear to be in the 'cs' module, but I'm not sure. Also the "Waiting for /dev to be fully populated..." script in which the backtrace occours also hangs and hasto be Control-C'd, or you have to wait for it to time out. Attached is my syslog

View 9 Replies View Related

Ubuntu :: Share File Permission \ Some One Copy Their File In This Folder The Permission Is Marked As "no Group" "no Owner"?

May 18, 2011

I'm using ubuntu 11.04, I'm having some problem of ownership while sharing folder/files. to share i change the folder share option:1. Share this folder, then followed by 2.allow others to create and delete files in this folder3. guest access.Now if someone in my local network edit any file and save it, it gets locked. if some one copy their file in this folder the permission is marked as "no group" "no owner". and they get unaccessible to me. i tried doing chown <user> <folder> but it says Operation not permitted. Now how i can possibly share my folder on local network so that they can be edited by others without getting locked down , if they copy files i can able to modify them.

View 2 Replies View Related

General :: Output To A Text File, The Results Of Compound Command?

Jul 28, 2010

How to output to a text file the compound command:

Code:
find -type f -print0 | xargs -0 grep -l "desired text"
I have not been able to find the answer.

[code]...

View 5 Replies View Related

General :: Sending Find Results To File - List Too Long

Aug 12, 2010

I'm trying to do a
find /photos/* -type f -mtime +365
to find all my pictures that are over a year old, but I keep getting argument list too long. How can I view what all the results are, even if it just dumps it to a file that I have to open?

View 12 Replies View Related







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