04-04-2006
The destination user must have used the command
mesg y
to enable others to write to his/her terminal. There is no way to override this, as this is a privacy feature.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
2. Shell Programming and Scripting
Hi,
The requirement is like,
the program needs 2 argument one is user_id and second one is directory path. My script will check if that user_id has write access to the directory path. The directory path may be in any file system like AFS or NFS.
Can any one please suggest some points to... (1 Reply)
Discussion started by: siba.s.nayak
1 Replies
3. Shell Programming and Scripting
Hi,
i am having following directory structure
Folder1
-> Folder2
-> Folder3
Folder4
Folder5
Now i am at top level and want to assign write permission to all the folder & files in it.
i am... (3 Replies)
Discussion started by: sarbjit
3 Replies
4. UNIX for Dummies Questions & Answers
How would i write a command that can find all the objects under the etc directory that have group write permission enabled and have not been accessed in the last X days.
This is what i got from internet souce but i m not able to modify it according to my distribution.
find /etc -perm... (1 Reply)
Discussion started by: pinga123
1 Replies
5. Debian
Hello,
I need to run an application in wine that requires write permission to a USB device. Wine users must not have root privileges. On FreeBSD this could be accomplished by adding the user to the wheel group but I am using Debian 6.0. From looking at the passwd file it is not obvious what... (6 Replies)
Discussion started by: snorkack59
6 Replies
6. Red Hat
Hi
root user creates a user using the useradd command. This command creates an entry in the /etc/passwd file. /etc/passwd file has rw permission for the root user. Now, if I happen to remove the w permission for the root user, useradd command still is successfully creating entry in the... (3 Replies)
Discussion started by: guruprasadpr
3 Replies
7. Shell Programming and Scripting
Hello all,
I have a problem with rsync command.
From a backup server, I use a command like the one below:
rsync -av --delete user@host:/home/user/ /home/backup_user/daily_rotating_backup/
In some folders of the user there are some files on which he has removed his write permission on... (3 Replies)
Discussion started by: freddie50
3 Replies
8. Red Hat
Hi,
In my server I am getting below errors in "/var/log/messages":
Oct 8 14:45:44 LKOGOMEEMM01 kernel: type=1400 audit(1444295744.792:15818): avc: denied { write } for pid=53421 comm="ip" path="/var/VRTSvcs/log/tmp/IPMultiNIC-8" dev=dm-0 ino=2754879 scontext=system_u:system_r:ifconfig_t:s0... (4 Replies)
Discussion started by: rochitsharma
4 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
We have a scenario in production where we want only one user from a group to modify the file. The file is not set to write permission for application manager.
-r--r--r-- 1 amgr u00 15661716 Aug 30 00:06 DCI.dat
So here amgr will have permission to edit the file. We want a... (10 Replies)
Discussion started by: arunkumar_mca
10 Replies
10. UNIX for Beginners Questions & Answers
logMsg='Started by '${USER}
LOG_MESSAGE "${logMsg}"
resultCode=$?
if ]; then
return ${resultCode}
fi
touch ${FILELISTPATH}
resultCode=$?
if ]; then
logMsg='failed to create file list:'${FILELISTPATH}
LOG_ERROR "${logMsg}" CUSTOM_PREPROCESS ${FATAL}
... (2 Replies)
Discussion started by: raka123
2 Replies
MESG(1) BSD General Commands Manual MESG(1)
NAME
mesg -- display (do not display) messages from other users
SYNOPSIS
mesg [n | y]
DESCRIPTION
The mesg utility is invoked by a user to control write access others have to a terminal device. Write access is allowed by default, and pro-
grams such as talk(1) and write(1) may display messages on the terminal.
The first terminal device in the sequence of devices associated with standard input, standard output and standard error is affected.
Options available:
n Disallows messages.
y Permits messages to be displayed.
If no arguments are given, mesg displays the present message status to the standard output.
EXAMPLES
Disallow messages from other users to the current terminal:
mesg n
Allow messages from other users to ttyp1 (assuming you are also logged in on that terminal):
mesg y </dev/ttyp1
DIAGNOSTICS
The mesg utility exits with one of the following values:
0 Messages are allowed.
1 Messages are not allowed.
>1 An error has occurred.
COMPATIBILITY
Previous versions of the mesg utility wrote the message status to the standard error output and affected the terminal attached to standard
error without first trying the standard input or output devices.
SEE ALSO
biff(1), talk(1), wall(1), write(1)
STANDARDS
The mesg utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
A mesg command appeared in Version 1 AT&T UNIX.
BSD
May 5, 2002 BSD