07-12-2001
New dedicated server and I'm a little confused
I am not entirely new to unix or telnet....but advanced would
be a huge stretch of the imagination.....
I am trying to chmod a directory via root and I'm getting a
no such file or directory message?
correct me if I'm wrong but you simple go to the directory
you want to change permissions on and run this command,
chmod -r 777
Tony
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello All, I am trying to list only directories in my current directory using the command "ls -d". But the output only contains the default directory "." and doesn't list the rest of the directories in the working directory. Can anyone explain why this is happening (2 Replies)
Discussion started by: igandu
2 Replies
2. Shell Programming and Scripting
I have a problem using bash. Simply, I cannot find the right command (if there's one!) to enter in the "- Arch_02 -" directory. As you can see, the name begins with a hyphen and this is causing some trouble:
localhost arch2 # pwd
/mnt/arch2
localhost arch2 # ls -l
total 4
dr-x------ 1 root... (3 Replies)
Discussion started by: robotronic
3 Replies
3. Shell Programming and Scripting
Dear friends,
please tell me how to find the files which are existing in the current directory, but it sholud not search in the sub directories..
it is like this,
current directory contains
file1, file2, file3, dir1, dir2
and dir1 conatins
file4, file5
and dir2 contains
file6,... (9 Replies)
Discussion started by: swamymns
9 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I would like to know is there any way to find/search filenames or directories inside the directories which has resticted permission.
When we use normal "find" command it returns "permission denied" message for the root directories or directories with restricted permissions.
Thanks (2 Replies)
Discussion started by: forstudy3
2 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. Shell Programming and Scripting
I want to list all files/lines which except those which contain the pattern ' /proc/' OR ' /sys/' (mind the leading blank).
In a first approach I coded:
find / -exec ls -ld {} | grep -v ' /proc/| /sys/' \; > /tmp/list.txt
But this doesn't work. I got an error (under Ubuntu):
grep:... (5 Replies)
Discussion started by: pstein
5 Replies
7. AIX
Hi
I'm logged in to an AIX box now and we need to do an audit on this box.
cbssapr01:# pwd
/
Which command will show all the files and directories owned by root user with permissions as 777 ? (8 Replies)
Discussion started by: newtoaixos
8 Replies
8. Shell Programming and Scripting
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies
9. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
10. Shell Programming and Scripting
These three finds worked as expected:
$ find . -iname "*.PDF"
$ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \)
$ find . -path "*_nobackup*" -prune -iname "*.PDF"
They all returned the match:
./folder/file.pdf
:b:
This find returned no matches:
$ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies
fd(4) Kernel Interfaces Manual fd(4)
NAME
fd - file descriptor files
DESCRIPTION
The /dev/fd file system is a pseudo-file system layered beneath the Virtual File System (VFS). The file descriptor files (fd*) are those
files that are accessible through file descriptors. The file descriptors use the naming convention /dev/fd/0, /dev/fd/1, /dev/fd/2 and so
on up to any number.
To make the /dev/fd file system known to the operating system, you must create the directory with the correct privileges, then you must
mount the file system. The following steps describe how to create the directory, mount the file system both manually and automatically,
and how to dismount the file system: Create the directory using the mkdir and chmod commands: mkdir /dev/fd; chmod 777 /dev/fd Mount the
file system manually using the mount command: mount -t fdfs /dev/fd /dev/fd Mount the file system automatically by editing either the
/etc/fstab file or the /sbin/bcheckrc file.
Add the following entry to the /etc/fstab file: /dev/fd /dev/fd fdfs rw 0 0 This entry mounts the pseudodevice /dev/fd on the
/dev/fd directory with read/write privileges. The file system type is fdfs and the zeros (0) in the remaining fields specify that
the file system is not to be backed up nor can file system checks be performed by the fsck command as this is a virtual file system.
Add the following entry to the /sbin/bcheckrc file: # # mount fdfs # echo 'Mounting /dev/fd filesystem' /sbin/mount -a -v -t fdfs
Again, the /dev/fd file system should not be mounted in this manner if an entire system is to be backed up starting from the root
directory. Dismount the file system using the umount command: umount /dev/fd For correct truncate() behavior on fd files, you must
load your program using the -lsys5 flag.
RESTRICTIONS
The /dev/fd file descriptors should not be exported.
EXAMPLES
The following example show how the open and dup functions have the same effect if file descriptor n is opened:
fd = open("/dev/fd/n", mode);
fd = dup(n);
In the above example, the open function is equal to the creat function and mode is ignored. Using the dup function, subsequent reads or
writes on the fd file descriptor files fail unless the original file descriptor enables the operation.
ERRORS
The following error condition exists: The file descriptor is not valid.
RELATED INFORMATION
Commands: chmod(1), mkdir(1), mount(8).
Functions: creat(2), dup(2), open(2). delim off
fd(4)