when i run echo "User” > /dev/tty5 why do i get permission denied?
Because you are not allowed to do that. ;-))
Seriously: check the permissions of file "/dev/tty5" with the command
Code:
ls -l /dev/tty5
and have a look. Every file (device files are files too) carry a "r" (read), a "w" (write) and a "x" (execute) privilege for the owner, the owners group and every other user. See "man ls" for more details about this. Here is one of my systems:
Code:
# ls -l /dev/tty5
crw------- 1 root root 4, 5 Mar 4 15:51 /dev/tty5
As you can see the user "root" has "rw", his group (accidentally also named "root") has no rights at all and everybody else has no rights either.
i'm trying to set up my internet connection and i was told i need to edit the file
/etc/ppp/pap-secrets
but i get a permission denied message...why?? (6 Replies)
I just started computer science at UW Milwaukee. When I access the university Solaris system from PuTTY, I get permission denied when I try to access the file I wrote. Now I really have no idea what I'm doing, I just don't understand why I get permission denied in my won directory. Thank You
... (0 Replies)
Hi,
I can not execute a .env file
$ . /Data/oracle/d03/mydbora/8.0.6/MYDB.env
-bash: /Data/oracle/d03/mydbora/8.0.6/MYDB.env: Permission denied
Even if :
-rwxrwxrwx 1 oracle dba 2903 Mar 5 2007 /Data/oracle/d03/mydbora/8.0.6/MYDB.env
Please help.
Many thanks. (1 Reply)
I'll start off by saying that I know very little about Unix - however, I do know that I have a .profile file in my home directory, and that I should be able to invoke it by typing . profile. However, when I do this for ANY .filename, I get ".: Permission denied". I'm pretty sure that there is... (12 Replies)
I would like to copy data from local mechine to cluster. Basically, I typed
scp -r DVD/ acount@cluster:/
it shows Permission denied.
Could anyone please give me a clue to write permission on cluster, please?
The poperty of where on cluster I'd like to put is drwxr-xr-x
Any idea would... (1 Reply)
Hi guys im new to this db
i have a small prob while installing websphereportal6.1i think i was installed succesfully
but the error im getting is while starting server.
check this out
# ./serverStatus.sh -all
Error loading: /usr/wps61/AppServer/java/jre/bin/classic/libjvm.so: cannot... (1 Reply)
I created a user so that when he logs in he will be directed to a menu
/etc/passwd
user1:x:115:1:Support -SysAd:/export/home/user1:/export/home/suppotrmenu/script.sh
However when I logged in remotely from another server by ssh user1@1.1.1.1 , it saysexport/home/suppotrmenu/script.sh:... (4 Replies)
I am using korn shell
When I type in Telnet on cmd line, I get message
"cannot execute"
How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there
Thanks (1 Reply)
Trying to get date into the txt file.
It says
Permission denied.
echo $(date +%I:%M:%S_%D) >> /tmp/systemd_suspend_test_err.txt
exec 2>> /tmp/systemd_suspend_test_err.txt
if ; then
# Do the thing you want before suspend here
echo "we are suspending $(date +%I:%M:%S_%D)."
elif ;... (5 Replies)
Discussion started by: drew77
5 Replies
LEARN ABOUT PHP
socket_strerror
SOCKET_STRERROR(3) 1 SOCKET_STRERROR(3)socket_strerror - Return a string describing a socket errorSYNOPSIS
string socket_strerror (int $errno)
DESCRIPTION socket_strerror(3) takes as its $errno parameter a socket error code as returned by socket_last_error(3) and returns the corresponding
explanatory text.
Note
Although the error messages generated by the socket extension are in English, the system messages retrieved with this function will
appear depending on the current locale ( LC_MESSAGES).
PARAMETERS
o $errno
- A valid socket error number, likely produced by socket_last_error(3).
RETURN VALUES
Returns the error message associated with the $errno parameter.
EXAMPLES
Example #1
socket_strerror(3) example
<?php
if (false == ($socket = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP))) {
echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "
";
}
if (false == (@socket_bind($socket, '127.0.0.1', 80))) {
echo "socket_bind() failed: reason: " . socket_strerror(socket_last_error($socket)) . "
";
}
?>
The expected output from the above example (assuming the script is not run with root privileges):
socket_bind() failed: reason: Permission denied
SEE ALSO socket_accept(3), socket_bind(3), socket_connect(3), socket_listen(3), socket_create(3).
PHP Documentation Group SOCKET_STRERROR(3)