10-15-2008
You can either switch the files to read-write via chmod (remember to set them back to read-only when you are finished) or edit them in vi and save with the :w! command (the '!' character forces it to override the read-only mode).
9 More Discussions You Might Find Interesting
1. IP Networking
I have a new desktop in my company and I want to configure that box in our network.we using unix sytem.I don,t have enough knowledge about the unix,so please can you suggest me how to configure the desktop.This is urgent if you can help me quickly. (1 Reply)
Discussion started by: bbutani
1 Replies
2. UNIX for Dummies Questions & Answers
Hello all,
I am trying to hit the internet from my unix box (sun 250e), but cannot reach any external IP addresses.
I've updated the hosts and resolv.conf files with what i assume is the right information, but nothing happens (after reboot). In the hosts file, i've entered the Router, PDC,... (4 Replies)
Discussion started by: colesy
4 Replies
3. AIX
Hi,
We have two IBM pSeires servers running IBM AIX. I want to configure the IBM servers to print on the network printer.
Here is the following configuration
IBM Server-I IP Add: 192.168.0.5
IBM Server-II IP Add: 192.168.0.6
Network Printer IP Add: 192.168.0.15
I'm new to IBM AIX OS.... (0 Replies)
Discussion started by: berhanemt
0 Replies
4. Ubuntu
Hi Friends,
I have installed Ubuntu in win xp system with the help of Vmware workstation.Can anyone tell me how to configure network in Ubuntu.I mean how to connect it to Internet.
Thanks in advance,
Eajaz. (2 Replies)
Discussion started by: ajazshariff
2 Replies
5. UNIX for Dummies Questions & Answers
I want to connect to the internet via Wi-Fi, but I need to configure my pci adapter card for it to work. The adapter I am using is a Linksys Wireless-G pci adapter wmp54gs.:confused: (5 Replies)
Discussion started by: ryan352333
5 Replies
6. Solaris
Hi all,
Just istalled Solaris 11.
Want to configure network interfaces and got some problems:
#dladm show-phys
#
#dladm show-link
#
If i run ifconfig -a, i am getting 2 lo0 (loopback) interfaces and thats all.
I can't enable interface, can't list it, can't assign IP to it.
Can... (2 Replies)
Discussion started by: nypreH
2 Replies
7. Red Hat
Hi,
I have 2 machines in production environment:
1. redhat machine for application
2. DB machine (oracle)
The application doing a lot of small read&writes from and to the DB machine.
The problem is that after some few hours the network from the application to the DB becomes very slow and... (4 Replies)
Discussion started by: moshesa
4 Replies
8. SuSE
Please let me know how to configure network in suse Linux, I have configured the network using ifup and network manager, it is not giving any error but not working,
using suse Linux 11.0 sp3
I have checked network connectivity is working. (0 Replies)
Discussion started by: manoj.solaris
0 Replies
9. Solaris
Hi
I am very well aware of configuring central logging (syslog)server on solaris to capture logs of other solaris servers. But don't know how to capture the logs of network devices like Juniper , cisco etc on solaris server. Is this possible through syslog server of solaris. Is there any way we... (1 Reply)
Discussion started by: amity
1 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)