Ubuntu :: The "sudo Cp -r" Command Set The Destination Folder To Only Root Access?

Feb 27, 2010

Before, the "sudo cp -r" command automatically set the permissions to make the directory / files can be accessed by others.

But, after I reinstall Ubuntu 9.10 and apply all the latest updates, "sudo cp -r" command set the files to be accessible by root only.

After I copy the codecs directory to /usr/lib by using the above command, not only I cannot view the files inside, SMPlayer and other player software cannot access the directory.

To fix this, I have to run the chmod command to change the permissions.

Does anyone face this problem? Was it caused by the installation of latest updates?

View 6 Replies


ADVERTISEMENT

General :: Sudo Cd /root Gives Sudo - Cd - Command Not Found

Jan 6, 2011

Kernel 2.6.21.5, Slackware 12.0

Code:

Code:

On the other hand

Code:

So, I do not understand why the notification "sudo: cd: command not found", considering cd is a bash built-in command.

View 3 Replies View Related

Ubuntu :: Get Root User Access Without Using Sudo?

Apr 23, 2010

It's been a few years since I last installed Ubuntu. I searched the forums and can't seem to find the answer. I want to be able to do a "su root" and have root access. I know Ubuntu wants you to do the sudo command, and I know you can really mess things up being root. I know I got this to work before. What do I need to do?

View 3 Replies View Related

Ubuntu :: Cannot Change Directory To A More Than Three Folder Tree Destination Folder From In Terminal?

Sep 18, 2010

I cannot change directory to a more than three folder tree destination folder from ~ in terminal. I've checked everything. No Typos or misspell. The destination folder was recognized by "ls" command but when I went to it, the terminal said, "no such file or directory."

View 7 Replies View Related

Slackware :: Sudo Does Not Allow Access To Root Commands

Feb 22, 2011

In order to allow me to shutdown my PC from within fluxbox without being root I ran "visudo" and added the following line:

Code:

psionl0 ALL=(ALL) NOPASSWD: ALL

A check that the line had been accepted showed all ok:

Code:

bash-4.1$ sudo -l

User psionl0 may run the following commands on this host:

(ALL) NOPASSWD: ALL

Yet when I tested it out, I got nowhere:

Code:

bash-4.1$ sudo pkgtool
sudo: pkgtool: command not found
bash-4.1$ sudo shutdown -h now
sudo: shutdown: command not found
bash-4.1$

Have I done something wrong or isn't sudo meant to be used this way?

View 12 Replies View Related

Ubuntu :: Cant Remember Sudo Command To Enable Root?

Jul 2, 2010

I have done this before and its driving me insane, i just cant remember what command it was and google isnt revealing anything either.i usually type:"sudo command" and it asks my password which is ok, but i have a bunch of commands to issue as root and dont want to have to type sudo each timethis is what I want to see:

View 3 Replies View Related

Ubuntu :: Cannot Use 'sudo' Command Either With Root Or User Passwords

Apr 19, 2010

I was wondering if someone had a logical reason and therefore complete, hopefully that makes total sense, for why when I install Ubuntu I cannot use the 'sudo' command either with root or user passwords. Even if I try to edit the permissions for sudoers, I still recieve an error message that says access is denied and so as the root user on my pc I don't understand why I can't put my name in the sudoers file or use the sudo command with the correct password.

View 9 Replies View Related

General :: Execute Root Command Without Sudo?

Jan 24, 2010

On my ubuntu I have a command pm-suspend, which puts the computer to sleep. It has to be run with sudo. Since it is inconvenient to be forced to type the password every time I want my computer to sleep, I thought maybe there's a way around it. Naively I thought that if I'd create a script as root, that invokes pm-suspend, and then let anyone execute that script, I could run that script as my own user and then that script would be considered run by root and hence be allowed to run pm-suspend. Obviously that didn't work. The root-check procedure in pm-suspend still found out that the original executor was someone different from root.

Still I think something similar (although slightly more elaborate) should work.I'm thinking about the process that allows the user to mount hard drives for example. Normally root is required, but it is somehow bypassed by the gnome utility mounting.

View 8 Replies View Related

General :: Sudo Command Occasionally Asks For Root Password?

Sep 9, 2010

In Ubuntu 10.04, I logged in as user1 and when I open a new terminal and issue any command it is asking password.user@ubun-laptop:~$ sudo ifconfig[sudo] password for user: It is asking for password only for first time.From the next command onwards it is not asking.Can some one please tell me if it is possible to issue ONLY ONE COMMAND, in which even if the password request comes, it will automatically fill the password.Just like "ps -elf | grep NetworkManager". I am expecting any combination of commands in a single line, so that password is filled automatically IF PASSWORD IS ASKED. If password is not asked, the command must be executed.

View 17 Replies View Related

Ubuntu Installation :: Can't Access Root Folder / Install Drivers?

Jun 18, 2011

I'm completely new to ubuntu and Linux for that matter, i have a TBS 6920 dvb stat car, but have no idea how to install the drivers, i have downloaded them nd had a look at the read me file and it mentions creating a directory in root/ but cant access the root folder for some reason or other, is there anyone who can help me?? also is it possible to install through terminal instead as that would be easier no?

View 2 Replies View Related

General :: How Does Cp Command Determine Source And Destination Locations In Command?

Apr 14, 2011

When you run the following cp command in the BASH terminal, how does Linux know which files are the source and which are the destination when copying multiple files from one location to another?How does Linux know that the services, motd, fstab, and hosts files are the source and the /home/fred/my_dir is the destination?This question came up in a Linux class and I was not sure of the answer. I was thinking it is based on the source path entered ending with a file path and the destination being a directory, but was not sure.

View 4 Replies View Related

General :: Use The Command "sudo Su Root" From User Besides Ubuntu?

Mar 17, 2011

Why can't you use the command "sudo su root" from a user besides Ubuntu?

View 2 Replies View Related

Ubuntu :: RAR Archive - Extracted Files Not In Destination Folder

Sep 14, 2010

I have a RAR archive, split into 40 sections, containing a folder with a total of 2GB of data. When I Open the Archive using "File Roller 2.30.1.1" and drag the archived folder to destination folder, it says that its uncompressing, but after its uncompressed, there is nothing there, in the destination folder. Where was the 2GB extracted stuff gone?

View 1 Replies View Related

OpenSUSE Install :: Copy A File Into Root Folder - Setting The Access Permissions?

Jun 23, 2010

I want to copy a file into my Root folder but I cant.what should I do?

View 2 Replies View Related

OpenSUSE Multimedia :: K3b To Not Remove Failed .iso Image Creations From Destination Folder?

Feb 23, 2011

When K3B is creating an .iso image to file and fails to read a sector even at the very end of a DVD it issues you a warning and removes the file from the destination folder, regardless of what choice you made in the "remove file when completed" dialog.

I want it to leave the incomplete .iso image there so I can play with it, any suggestions cause I've searched scratched and dissected, trying to do my homework but doggone if I can figure it out,

View 8 Replies View Related

General :: Move Folders That Contain A File With A Specific Extension To A Destination Folder?

Oct 3, 2010

Many years ago, I converted a portion of my files to an arbitrary format with a specific extension. i no longer desire to have them in this format and i would like begin the process of replacing them because conversion is not an appropriate solution. unfortunately, they are mixed in separate folders of the same root folder with files in my current format of a different extension. I feel it would make this process easier if I were to move every folder that contained a file with the undesired format to a separate root folder. The files are stored on a Linux server and shared via samba. How can I do this with a couple of commands or a script? I am open to other suggestions as well. I want to avoid time spent editing text files. Ultimately, I'd like a command that produced a list of full paths for folders, sorted by the number of levels would be a nice touch. A list of all of the files is clearly not what I'm looking for.

View 2 Replies View Related

Ubuntu :: Can't Cd To Root Acount /home In Terminal - Sudo Cd /root Fails?

Jul 25, 2011

can't cd to root acount /home in terminal - sudo cd /root fails?

View 3 Replies View Related

OpenSUSE Install :: Revert The Changes Or Change The Permissions Again To Root:root Or Make Sudo Work

Aug 10, 2011

Accidentally I changed the ownership of all the directories under / to my own instead of root:root. Now I am unable to use sudo and many bad things are happening. Is there a way to revert the changes or change the permissions again to root:root or make sudo work ?

View 3 Replies View Related

General :: CentOS / Sudo Doesn't Accept Root Password But Logging In As Root Works

Apr 9, 2010

I was trying to edit a file requiring root permissions, so I used sudo. I typed the root password and it failed. This happened three times, and the process was ended. I then logged in as root (su) and was able to navigate to the file and make changes as root. Am I missing something? How would I edit the sudoers file such that this password would work? Or is there another way to log in to the sudo group to make these changes? How do I set sudo passwords?

View 1 Replies View Related

General :: Cannot Access/ping Debian \ Gives Destination Host Unreachable?

Nov 27, 2010

I cannot access/ping my Debian server. I know the IP is right (ifconfig, route and ip addr) all gave me 10.0.2.25 (route gave me 10.0.2.0).I cannot ping it from any computer in my netwerk, even when I try to ping it from my Debian itself, it gives me Destination Host Unreachable !(Wierdly, I can ping 10.0.2.2 tho).I am using virtualbox when the netwerk options 'NAT' turned on. When I look at my /etc/network/interfaces/ the last line looks like:iface eth0 inet dhcpShouldn't their be some other stuff listed?

View 6 Replies View Related

General :: Run The Same Command(s) On The Many Destination Servers From Source Server?

Jan 4, 2011

I am trying to run the same command(s) on the many destination servers from my source server.source server user "report" ssh keys are added to all destination hosts.

hosts.cfg:
----------
gadikota_dev01

[code]....

View 3 Replies View Related

Server :: Sudo - Command Can't Run By Sudo

Jun 18, 2010

I am having trouble running commands by using sudo. I configured visudo file with localuser ALL=(ALL) ALL but I can't run any command, it tells me command not found.

View 8 Replies View Related

General :: Cloning With The Dd Command - Source Being Copied Onto Bad Sectors On The Destination Disk?

Apr 17, 2011

To make a full backup I run a live Knoppix DVD and clone the computer's HDD to an external HDD using the dd command. Is there a possible problem with the source being copied onto bad sectors on the destination disk? If so is there a way to prevent this from happening? A typical dd command I use looks like: dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror. Is this the recommended command for cloning to a disk of equal size?

View 1 Replies View Related

Ubuntu Servers :: Samba - Access Folder To Delete Or Restore From The Recycle Bin Folder

Apr 24, 2010

I'm using ubuntu server 9.10 for a home build NAS. Everything is working great just have one more thing to figure out. I have Samba set up to access my files and I set up a recycle feature so anything deleted will get moved to a Recycled folder. (I learned this the hard way after hitting delete key by accident while browsing the shares in windows. Lost 100 GB of data)

Now it is for the most part working but the permissions on folders isn't getting set right. If I delete a file in a share I can go to Recycle bin folder and delete the file for good. But if I delete a folder I can not access that folder to delete or restore from the Recycle bin folder. I have to chmod the folder before I can do anything with it. Anything I can change to get folders deleted via windows to have the right permissions when it is moved to the Recycle bin folder?

[Code]///

View 1 Replies View Related

Ubuntu :: VBox Shared Folder Both Way / Access To Certain Folder In Win7?

May 26, 2010

- I have ubuntu installed, and win7 is installed using vbox.

- I know how to set shared folder, so win7 can access the folder in ubuntu.

- I need to have an access to certain folder in win7 from ubuntu.

How can I do that?It is not about samba, right?

View 5 Replies View Related

Red Hat / Fedora :: Chmod - Give A Mounted Folder /mnt/folder Access

Oct 28, 2010

I want to give a mounted folder /mnt/folder access so that 'root and the group test have read write access' and all other users have read access I understand most of the chmod command, the users groups world etc but where in the 'command' do you specify which 'group' or 'user' you are giving the read / write access to? in all the tutorials i've seen no where do you specify the actual group or user.

View 3 Replies View Related

Ubuntu :: Sudo Fsck Wiped Thunderbird Folder?

Jul 19, 2011

I had to run sudo fsck /dev/sda8 on a partition through ubuntu liveCD since ubuntu 10.10 would not start up.I ran sudo fsck (without arguments) and I must have erased something in error (there was a stream of errors) because when I rebooted ubuntu .. my Thunderbird inbox had been cleared .. erased.I've still got inbound emails archived on my pop server so I can download those again .. but I've lost outgoing emails sent from my Thunderbird client.

View 6 Replies View Related

General :: Command Line - Move Folder Contents Into Parent Folder

Jun 11, 2010

I have a folderA that contains folderB that contains a lot of files. I would like to get rid of folderB, but not its contents. I want those contents to be inside of folderA. How can I accomplish this on the commandline?

View 2 Replies View Related

Ubuntu :: Become A Root User Without Using Sudo?

Nov 6, 2010

How to become a root user without using sudo?So,that i can become super user to edit configuration files in etc directory.

View 1 Replies View Related

Ubuntu :: Ask For Root Password Instead Of Sudo?

Dec 16, 2010

When i install or upgrade the system I want to be asked for the root password instead of just the normal password for sudo. The reason for this is that the kids and so on uses my system and know my password. They do not know my root password though. I do not want them to install or mess up my system by pure fumbling, so is this possible to do. A simple change in who runs the updater/install features...

View 9 Replies View Related







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