Users can't run w command


 
Thread Tools Search this Thread
Operating Systems SCO Users can't run w command
# 1  
Old 04-02-2012
Users can't run w command

Hi There

I am running SCO Openserver 5.07
When a user try to run the command w they get the following error:
Code:
w: Cannot open /unix for reading: Permission denied (error 13)

On another server also running running SCO Openserver 5.07, and trying to run the w command they get the following error:
Code:
w: Cannot open /dev/kmem for reading: Permission denied (error 13)

This is for different users, what stange is is that they can run the who and finger commands


Can't find anything on the SCO site.

Thanks in advance

Last edited by Scrutinizer; 04-02-2012 at 09:00 AM..
# 2  
Old 04-02-2012
Change the permissions for /dev/kmem to 0444. The permissions are reset to 0440 on a kernel re-link.
This change also allows non root users to run "fuser".
# 3  
Old 04-02-2012
Thanks for the reply

Changed permission

No I also get this on the spesific server

Code:
w: Cannot open /unix for reading: Permission denied (error 13)

# 4  
Old 04-02-2012
run "integrity -e" and fix all the permissions and ownership issues.
This User Gave Thanks to jgt For This Post:
# 5  
Old 04-03-2012
Quote:
Originally Posted by jgt
run "integrity -e" and fix all the permissions and ownership issues.
Thank you very much it worked.

I first ran the integrity command then fixmog


Problem resolvedSmilieSmilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Grep command giving different result for different users for same command

Hello, I am running below command as root user #nodetool cfstats tests | grep "Memtable switch count" Memtable switch count: 12 Where as when I try to run same command as another user it gives different result. #su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Discussion started by: Pushpraj
10 Replies

2. AIX

How to use dsadm command to run command on multi lpars?

how to run a command, such as "ls -l core" from one lpar to check multi lpars if core file exist? or what way can do a command on all lpars from one lpar? Thanks (1 Reply)
Discussion started by: rainbow_bean
1 Replies

3. Shell Programming and Scripting

Script for telnet and run one command kill it and run another command using while loop

( sleep 3 echo ${LOGIN} sleep 2 echo ${PSWD} sleep 2 while read line do echo "$line" PID=$? sleep 2 kill -9 $PID done < temp sleep 5 echo "exit" ) | telnet ${HOST} while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies

4. Red Hat

Restricting multiple users to run only sftp server

Hello, can someone please provide steps, can I restrict a multiple users to only access only sftp on a server, to perform upload and download of files on their home directories. 1. I have updated their login shell as /sbin/nologin. anything else do I need to update. Thanks, (3 Replies)
Discussion started by: bobby320
3 Replies

5. SuSE

Allow multiple users to run several root commands

I am using SUSE Linux Enterprise Server 10 SP2 (i586) and I had earlier ammended my sudoers file to allow users to become root user with "sudo su - " command Now I am trying to add multiple users to the sudoers file to run several commands such as restarting the server, restarting the nagios... (9 Replies)
Discussion started by: hedkandi
9 Replies

6. Shell Programming and Scripting

Need help! command working ok when executed in command line, but fails when run inside a script!

Hi everyone, when executing this command in unix: echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error. here is content of my script: tdbsrvr$ vi hc.sh "hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies

7. UNIX for Dummies Questions & Answers

list all commmands users can run on unix

Hi, I have an AIX server with sudo installed and working, but I want to do a script to list all permitted commands of all users.. is it possible? I tried with sudo -l -u $user but both options are not permitted. Any hint? Thanks ---------- Post updated at 06:51 AM ---------- Previous... (1 Reply)
Discussion started by: iga3725
1 Replies

8. Red Hat

Giving access to non root users to run application

Hi All, I have created an RPM installer and installed it via ROOT user & which works fine on Red Hat. But the problem oocurs when a non root users try to run that application (from their account), it never got executed (being it has the execute permission i.e. chmod a+x somefile.sh). I want... (6 Replies)
Discussion started by: jw_amp
6 Replies

9. Shell Programming and Scripting

Is command line invocation of gnome-terminal to run more than one command possible?

Hello, I am trying to learn how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here: #! /bin/bash # #TODO write this for gnome and xterm USAGE=" ______________________________________________ ${0##*/} run... (0 Replies)
Discussion started by: Narnie
0 Replies

10. Shell Programming and Scripting

ksh program run with different results by different users

Hi, I wrote a ksh program on Unix. One thing I don't understand: some users run it with different results. I suspect it's either "cat" or "grep" command. Basically, with one group of user, the 'cat' or 'grep' command is not getting the data I need and that changed the result. Is the above... (2 Replies)
Discussion started by: cin2000
2 Replies
Login or Register to Ask a Question