Sponsored Content
Full Discussion: chmod
Top Forums UNIX for Dummies Questions & Answers chmod Post 23456 by scotty on Monday 24th of June 2002 05:35:07 AM
Old 06-24-2002
Thanks peter.herlihy

Thanks for your reply.

i have some experience with the chmod but i canīt make a script that will makes the chmod automaticily.

i try it with a simple script that means go to this spezified directory and make a chmod 777 with all files with the extension ......

i didnīt get a error message if i try it over the crontab
the next message that i get is the the awk script canīt run because there are no permissions on the files.

Thanks again
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

CHMOD Help!!

Ok, listen.........I was using FTP Works to remove and add some files to a domain server. I messed with chmod button and made it so that no-one could access or their browsers could execute files and 2 or three certain directories. If anyone knows how to use this command and will give me a heads up... (2 Replies)
Discussion started by: jarrell
2 Replies

2. UNIX for Dummies Questions & Answers

Chmod Help!

Here is the deal, I am good with html and java and am creating a website for my brother. On this site he has chosen to use a ikonboard.com discussion board. I have done everything I can to pull it off, but no can do. Here is the problem: The site is being created using the angelfire... (12 Replies)
Discussion started by: xwfprez
12 Replies

3. UNIX for Dummies Questions & Answers

chmod...

Hey everyone, I was wondering if there was a quicker way to chmod a lot of files than doing what im currently doing. At the moment, im doing chmod 777 *filename* - but I have a lot of files, sub-directories, sub-files etc etc. And at the moment I see I have to chmod every single file... (3 Replies)
Discussion started by: mo0ness
3 Replies

4. UNIX for Dummies Questions & Answers

CHMOD query

Hi peeps, I'm new here, so I hope I'm posting in the right place... If I'm in a particular directory and I run the command 'CHMOD * 777' (or the other way around- I can't remember), am I right in saying it will only change the permissions of all the immediate files and directories and not... (1 Reply)
Discussion started by: jsp_1983
1 Replies

5. UNIX for Dummies Questions & Answers

CHMOD Question

I've always been fascinated by permissions and I have a question. Since the shell isn't a "virtual environment" (like say a web forum, where permissions can be enforced with absolute confidence), what's actually keeping an unauthorized user from viewing a CHMODed file? The read/write routines? Why... (1 Reply)
Discussion started by: froth
1 Replies

6. UNIX for Dummies Questions & Answers

CHMOD problems... Help!

Hey. I was playing somethink with chmods, and then i did chmod -R 755 / :eek: so linux but with errors and sshd not working .... Can some one give me proper chmods or better script that will do it. pls help fast (7 Replies)
Discussion started by: net555
7 Replies

7. Shell Programming and Scripting

help with chmod (files only)

hello, i want to chmod 444 all files in a directory, files in subdirs cannot be chmoded same goes for the subdirs themself. So using: chmod -R 444 /dir/ won't work because it will chmod the directorys and files (together with files in subdirectorys) I figured out how to chmod files... (1 Reply)
Discussion started by: TehOne
1 Replies

8. UNIX for Advanced & Expert Users

chmod question

I have two files,like follows: $ls -l foo bar -rw------- bar -rw-rw-rw- foo Then I execute follow code: chmod("foo",(statbuf.st_mode & ~S_IXGRP) | S_ISGID) chmod("bar",S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) Then I view the result $ls -l foo bar -rw-r--r-- bar... (1 Reply)
Discussion started by: konvalo
1 Replies

9. UNIX and Linux Applications

What is the difference between chmod in solaris and chmod in Linux?

i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies

10. UNIX for Dummies Questions & Answers

chmod

Hi I tried to use chmod in unix to change my file's permission. chmod 701 hello.cgi And it did change my desired file's permission. Yet, the name of the file is changed to hello.cgi* . And therefore I cannot compile it after that. So, I just wondering why there is an extra '*' in the file's... (2 Replies)
Discussion started by: alvin8906
2 Replies
CHMOD(3)								 1								  CHMOD(3)

chmod - Changes file mode

SYNOPSIS
bool chmod (string $filename, int $mode) DESCRIPTION
Attempts to change the mode of the specified file to that given in $mode. PARAMETERS
o $filename - Path to the file. o $mode - Note that $mode is not automatically assumed to be an octal value, so to ensure the expected operation, you need to prefix $mode with a zero (0). Strings such as "g+w" will not work properly. <?php chmod("/somedir/somefile", 755); // decimal; probably incorrect chmod("/somedir/somefile", "u+rwx,go+rx"); // string; incorrect chmod("/somedir/somefile", 0755); // octal; correct value of mode ?> man 1 chmod' and ' man 2 chmod'. <?php // Read and write for owner, nothing for everybody else chmod("/somedir/somefile", 0600); // Read and write for owner, read for everybody else chmod("/somedir/somefile", 0644); // Everything for owner, read and execute for others chmod("/somedir/somefile", 0755); // Everything for owner, read and execute for owner's group chmod("/somedir/somefile", 0750); ?> RETURN VALUES
Returns TRUE on success or FALSE on failure. NOTES
Note The current user is the user under which PHP runs. It is probably not the same user you use for normal shell or FTP access. The mode can be changed only by user who owns the file on most systems. Note This function will not work on remote files as the file to be examined must be accessible via the server's filesystem. Note When safe mode is enabled, PHP checks whether the files or directories you are about to operate on have the same UID (owner) as the script that is being executed. In addition, you cannot set the SUID, SGID and sticky bits. SEE ALSO
chown(3), chgrp(3), fileperms(3), stat(3). PHP Documentation Group CHMOD(3)
All times are GMT -4. The time now is 07:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy