11-14-2007
Typically there is a umask setting in each usernames $HOME/.profile
something like
umask 002 with cause the default perms to be 775 for dirs and 664 for files
umask 022 will get your 755 for dirs and 644 for files.
edit the respective .profile and change or update the the umask entry.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how do i create directories using command in my unix system, i could do with knowing how to do it with absolute pathnames and relative pathnames please (3 Replies)
Discussion started by: carlvernon
3 Replies
2. Shell Programming and Scripting
Hi,
Can someone help me with creating a bash shell script.
I need to create a script that gets a positive number n as an argument.
The script must create n directories in the current directory with names like map_1, map_2 etcetera. Each directory must be contained within its predecessor. So... (7 Replies)
Discussion started by: I-1
7 Replies
3. Shell Programming and Scripting
I have many pdf files with similar naming conventions as this one: AC41_AC85_86_AC128_129_MC171_173_SF_207_FMV.pdf. It is a pdf file containing evaluations for these locations: AC41, AC85, AC86, AC128, AC129, MC171, and MC173.
I want to create a directory for every location and put the... (3 Replies)
Discussion started by: ndnkyd
3 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Ok i need to create a directory within another directory in one command. I'm already in a directory to. I need to... (6 Replies)
Discussion started by: gangsta
6 Replies
5. Shell Programming and Scripting
I have an interesting requirement. I have declaried an array like :-
arr=`find . ! -name "." | xargs -I {} echo {} | cut -c 2-${#}`
Then i will try to access the array elements like :-
i=0
for i in ${arr}; do
Here comes the confusions, the array elements are basically dir and files stored... (2 Replies)
Discussion started by: Renjesh
2 Replies
6. Shell Programming and Scripting
Hi,
I am looking for the syntax to provide a timestamped log_file in expect.
Basically I want the equivalent of:
/outputs/`date +%d%m%y`/session`date +%H%M`
But scripted in expect so it can be handed over to the logfile function.
I have tried playing around with the timestamp... (1 Reply)
Discussion started by: krypton
1 Replies
7. Shell Programming and Scripting
0
Hi,
I am looking for a way of creating multiple directories using the mkdir -p command in a shell script.
I'm working with an Ubuntu machine and try to do something like that:
#!/bin/sh
... (3 Replies)
Discussion started by: frymor
3 Replies
8. Shell Programming and Scripting
i'm trying to write a script that has 2 variables, and uses the 1st variable as a number and the 2nd a name to create directories. so if you typed in ./myscript 5 week, it would create 5 directories named week1 - week5. whenever i run this, i get an error message saying week5 already exists, so i... (3 Replies)
Discussion started by: layne2kim
3 Replies
9. Shell Programming and Scripting
how can i move "dataName".sql.gz into a folder called 'database' and then move "$fileName".tar.gz * .htaccess into a folder called 'www' with the entire gzipped file being "$fileName".tar.gz? Is this doable or overly complex.
so
mydemo--2015-03-23-1500.tar.gz
> database
-... (5 Replies)
Discussion started by: wyclef
5 Replies
10. Shell Programming and Scripting
I want to create a new system of directory structure for example
mkdir -p ./iv.sac/resu/hhz.d
However, I think that `mkdir -p` overwrites the directories. I want to avoid that
and am doing something as follows in my bash script
echo -e "\nCreating directories:" ... (6 Replies)
Discussion started by: kristinu
6 Replies
LEARN ABOUT DEBIAN
bbstored.conf
BBSTORED.CONF(5) Box Backup BBSTORED.CONF(5)
NAME
bbstored.conf - Box Backup store daemon configuration file
SYNOPSIS
/etc/box/bbstored.conf
DESCRIPTION
The following configuration options are valid:
RaidFileConf
Specifies the path to the raidfile.conf(5). This is normally /etc/box/raidfile.conf.
AccountDatabase
Specifies the path to the account database created by bbstoreaccounts(8). This is usually /etc/box/bbstored/accounts.txt.
ExtendedLogging
Specifies whether extended logging should be enabled to show what commands are being received from clients.
TimeBetweenHousekeeping
How long between scanning for files which need deleting.
Server
These options relate to the actual daemon..PP PidFile
The location of the pidfile, where the daemon's process ID is kept.
User
The user to run as.
ListenAddresses
The interface addresses to listen on. Hostnames may be used instead of IP addresses. The format is: inet:hostname or inet:10.0.0.1.
CertificateFile
The path to the server's public certificate.
PrivateKeyFile
The path to the server's private key. This should only be readable by root and/or the User.
TrustedCAsFile
The Certificate Authority created by bbstored-certs(8).
EXAMPLES
The following is an example bbstored.conf:
RaidFileConf = /etc/box/raidfile.conf
AccountDatabase = /etc/box/bbstored/accounts.txt
TimeBetweenHousekeeping = 900
Server
{
PidFile = /var/run/bbstored.pid
User = _bbstored
ListenAddresses = inet:server.example.com
CertificateFile = /etc/box/bbstored/server.example.com-cert.pem
PrivateKeyFile = /etc/box/bbstored/server.example.com-key.pem
TrustedCAsFile = /etc/box/bbstored/clientCA.pem
}
FILES
/etc/box/bbstored.conf
SEE ALSO
bbstored(8), bbstored-config(8), raidfile-config(8)
AUTHORS
Ben Summers
Per Thomsen
James O'Gorman
Box Backup 0.11 10/28/2011 BBSTORED.CONF(5)