04-20-2005
I would be sure to use the /path/to/data/* or at least part of the file name.
I never liked using * for chmod or chown, b/c you can really screw up a system. I had seen one box where chmod 444 * was done on the /etc directory. *shudders* I had to spend most of a day straightening it out.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am working on a new UNIX box that has been delivered to us, and noticed that the /home directory has 555 permissions on it (dr-xr-xr-x). Any attempt to create write permissions fails on this directory (such as chmod 777), responding only with a message;
chmod: WARNING: can't change home
... (3 Replies)
Discussion started by: ncarmstrong
3 Replies
2. UNIX for Dummies Questions & Answers
Is there any way that you can set it up so when you create a file it has the chmod permissions of u+x? I am not a root user on the system (1 Reply)
Discussion started by: himurak
1 Replies
3. UNIX for Dummies Questions & Answers
Hello,
When I do a "ls -l" I can see my directories have
drwxr-xr-xr. I am more used to the chmod numerical syntax like 755. Is there an easy way to list out the numerical permissions rather than rwx etc. (1 Reply)
Discussion started by: rondebbs
1 Replies
4. UNIX for Dummies Questions & Answers
Hello all,
Trying to do the following.
1. Run Windows installer from a unix server.
2. Let user run the shortcut but not allow access to the folder where the exe itself is running.
What I have done so far:
1. Copied the application to the server and placed in a folder called "data".... (2 Replies)
Discussion started by: whiterabbit
2 Replies
5. UNIX for Dummies Questions & Answers
I am trying to setup an FTP server in a Fedora Core 3 machine through the command line interface and not KDE.
I think I am successful in getting the ftp service running, as when I do an ftp 127.0.0.1, I am able to log in using any one the user accounts I have created on this machine and browse... (8 Replies)
Discussion started by: cooljumbo2k8
8 Replies
6. UNIX for Dummies Questions & Answers
I would like to chmod the file which I am pulling from remote server onto my server.
I am using the following script:
sftp <server detail>
get abc xyz
chmod 666 xyz
bye
Though I could fetch the file successfully but I am not able to change the permission of xyz file on my server.
umask... (1 Reply)
Discussion started by: kdtrica
1 Replies
7. UNIX for Dummies Questions & Answers
I would like to chmod the file which I am pulling from remote server onto my server.
I am using the following script:
sftp <server detail>
get abc xyz
chmod 666 xyz
bye
Though I could fetch the file successfully but I am not able to change the permission of xyz file on my server. Pls... (5 Replies)
Discussion started by: kdtrica
5 Replies
8. UNIX for Dummies Questions & Answers
hello,
I am trying to copy a file over to a set of aix servers and then set the file permissions, owner, group etc and all of this logged in as sudo. I was able to copy the file over using rcp - i know its not secure or not best way to copy - but unable to execute chmod on the remote server as... (0 Replies)
Discussion started by: in5ane
0 Replies
9. Shell Programming and Scripting
hi,
Im using the following code for FTP
#!/usr/bin/ksh
ftp -v -n "10.29.45.11" << cmd
user "mahesva" "mahesva123"
get rtl.tar
quit
cmd
Below is the log when i run the above code
**********************************
Connected to 10.29.45.11.
220 (vsFTPd 2.0.1)
530 Please login with USER... (20 Replies)
Discussion started by: dll_fpga
20 Replies
10. UNIX for Dummies Questions & Answers
Hi All
I am running Ubuntu linux flavour.
I need provide multiple users belonging to the same group access to a dir where they can write files but are not supposed to remove or rename files. users outside the group should be able to read and write to the dir.
i have set the permission of... (7 Replies)
Discussion started by: Simza
7 Replies
mkdirp(3G) mkdirp(3G)
NAME
mkdirp(), rmdirp() - create, remove directories in a path
SYNOPSIS
DESCRIPTION
creates all the missing directories in the given path with the given mode (see chmod(2) for the values of mode.) The protection part of
the mode argument is modified by the process's file creation mask (see umask(2)).
rmdirp removes directories in path d. This removal starts at the end of the path and moves back toward the root as far as possible. If an
error occurs, the remaining path is stored in d1. returns a 0 only if it is able to remove every directory in the path.
To use these interfaces, link in the libgen library by specifying For example:
RETURN VALUE
If a needed directory cannot be created, returns -1 and sets to one of the error numbers. If all the directories are created, or existed
to begin with, it returns zero.
EXAMPLES
WARNINGS
uses to allocate temporary space for the string.
returns if a "" or "" is in the path. It returns if an attempt is made to remove the current directory. If an error occurs other than one
of these two errors, returns
SEE ALSO
chmod(2), mkdir(2), rmdir(2), umask(2), thread_safety(5).
mkdirp(3G)