Sponsored Content
Full Discussion: Install bash command
Operating Systems Linux Install bash command Post 302255317 by dave_c00 on Thursday 6th of November 2008 08:15:28 AM
Old 11-06-2008
Install bash command

Hello,

I am trying to copy some dirs and files over from one part of my server to the other with groups, owners and permissions so . . .

I am using the command:

install -m <777> -o <owner> -g <group> /<source>/* /<destination>

This works fine for the files but gives me "install: omitting directory" for the directories.

I have tried cp -r /<source>/* <destination>

but this does'nt give me the relevant groups owners etc.

Can anyone help?

Cheers

Dave
 

10 More Discussions You Might Find Interesting

1. Solaris

Need Help To Install Bash

Hi, I'm kinda new to doing anything too complicated on unix. I'm trying to install bash 2.05b and have run into trouble. I have got the source code in a directory I have created called bashInstall. I have run the config by doing.... sh ./configure and I get the following => aseries > sh... (5 Replies)
Discussion started by: ThePicklerUK
5 Replies

2. HP-UX

how to install bash

i'm newbie hp-ux . i want to install on my hp-ux B.11.23. actually i installed bash but when i run # bash /usr/lib/hpux32/dld.so: Unable to find library 'libtermcap.so'. Killed how can i install bash ? any doc or how to ? best regards (3 Replies)
Discussion started by: galkan
3 Replies

3. AIX

Install bash on AIX

Hi, Im trying to install bash on AIX, I have rpm installed but get: rpm --install bash-3.0-19.3.ppc.rpm error: failed dependencies: libc.so.6 is needed by bash-3.0-19.3 libc.so.6(GLIBC_2.0) is needed by bash-3.0-19.3 libc.so.6(GLIBC_2.1) is needed by... (0 Replies)
Discussion started by: chris5126
0 Replies

4. UNIX for Dummies Questions & Answers

Running set options from the command line and bash command

I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing set you can also use them "on the command line when running a script..." and it lists this in a small table: set -o option Command Line... (5 Replies)
Discussion started by: Straitsfan
5 Replies

5. OS X (Apple)

Where should I install an alias file under UNIX bash ?

I have a file named 'aliases' which contains a list of aliases like: alias loc='locate' alias h='history' alias .='pwd' alias ..='cd ..' alias cd..='cd .. ; pwd' .............................. Where should I put this file (alias) so when Terminal launches .bash and thus a shell at... (1 Reply)
Discussion started by: shub22
1 Replies

6. Shell Programming and Scripting

Automated Bash Install Script

I'm making an automated bash install script. When you install mysql-server using apt-get, there's a blue dialog screen where it wants you to chose your mysql root password. Is there a way to pre-define the password in the apt-get command, or have it not chose a root password? It's not a... (2 Replies)
Discussion started by: Matezius
2 Replies

7. AIX

Need to install the command less

Hello, I need to install the command less I tried to download the RPM packages but ALL the links of the packages are non-downloadable. Any help? Regards Ahmed Amer Cairo,Egypt (8 Replies)
Discussion started by: ahmedamer12
8 Replies

8. Solaris

How to install bash 3.0?

Solaris has bash 3.2 but i need bash 3.0, How we can do this and link for binaries (1 Reply)
Discussion started by: Deepak416
1 Replies

9. HP-UX

BASH install

Hi im trying to install BASH on my hp-ux i have the depot file on my machine. im runnig the command: swinstall -s "name of the file" and on the very first screen im unable to pass the first phase, please see the screen shots attached. what am i doing wrong? im logged in as "root" (2 Replies)
Discussion started by: guy3145
2 Replies

10. Shell Programming and Scripting

How to run several bash commands put in bash command line?

How to run several bash commands put in bash command line without needing and requiring a script file. Because I'm actually a windows guy and new here so for illustration is sort of : $ bash "echo ${PATH} & echo have a nice day!" will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies
DH_USRLOCAL(1)							     Debhelper							    DH_USRLOCAL(1)

NAME
       dh_usrlocal - migrate usr/local directories to maintainer scripts

SYNOPSIS
       dh_usrlocal [debhelperoptions] [-n]

DESCRIPTION
       dh_usrlocal is a debhelper program that can be used for building packages that will provide a subdirectory in /usr/local when installed.

       It finds subdirectories of usr/local in the package build directory, and removes them, replacing them with maintainer script snippets
       (unless -n is used) to create the directories at install time, and remove them when the package is removed, in a manner compliant with
       Debian policy. These snippets are inserted into the maintainer scripts by dh_installdeb. See dh_installdeb(1) for an explanation of
       debhelper maintainer script snippets.

       When the Rules-Requires-Root field is not (effectively) binary-targets, the directories in /usr/local will have ownership root:staff and
       the mode will be 02775.	These values have been chosen to comply with the recommendations of the Debian policy for directories in
       /usr/local.

       When Rules-Requires-Root has an effective value of binary-targets, the owners, groups and permissions will be preserved with one exception.
       If the directory is owned by root:root, then ownership will be reset to root:staff and mode will be reset to 02775. This is useful, since
       that is the group and mode policy recommends for directories in /usr/local.

OPTIONS
       -n, --no-scripts
	   Do not modify postinst/prerm scripts.

NOTES
       Note that this command is not idempotent. dh_prep(1) should be called between invocations of this command. Otherwise, it may cause multiple
       instances of the same text to be added to maintainer scripts.

CONFORMS TO
       Debian policy, version 2.2

SEE ALSO
       debhelper(7)

       This program is a part of debhelper.

AUTHOR
       Andrew Stribblehill <ads@debian.org>

11.1.6ubuntu2							    2018-05-10							    DH_USRLOCAL(1)
All times are GMT -4. The time now is 01:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy