- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- some one changed file mode access in /var/
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 05:32 AM
12-05-2007 05:32 AM
Dec 5 17:01:52 jl-xz-db avrd[15481]: ioctl error on HP.C5683A.013 (device 0, /dev/rmt/c3t3d0BESTnb) thru tape driver, Ih18C&
Dec 5 17:05:06 jl-xz-db avrd[15481]: Cleaning media in drive HP.C5683A.013 (drive index 0)
I don't know why but I when I "ll /var/",the access permissions of the files in /var are different with other system:
# ll /var/
total 144
drwxr-xr-x 3 108 bin 96 Nov 23 00:00 X11
drwxr-xr-x 17 adm adm 8192 Dec 5 23:36 adm
drwxr-xr-x 4 108 sys 8192 Nov 29 05:07 dt
drwxr-xr-x 2 108 sys 96 Nov 23 00:10 empty
drwxrwxrwt 2 108 bin 96 Nov 22 22:03 home
drwxr-xr-x 4 108 sys 96 Nov 23 00:04 jail
drwxrwxr-x 2 108 mail 96 Dec 5 23:45 mail
drwxrwxrwt 2 108 108 96 Nov 22 23:50 news
dr-xr-xr-x 34 108 108 8192 Nov 23 00:09 opt
drwxrwxrwt 2 108 108 96 Nov 23 00:00 preserve
dr-xr-xr-x 2 108 108 8192 Dec 5 23:36 run
drwxrwxr-x 11 108 108 8192 Nov 29 04:35 sam
dr-xr-xr-x 12 108 108 8192 Nov 23 01:12 spool
drwxr-xr-x 4 108 108 96 Nov 23 01:12 statmon
drwxr-xr-x 6 108 other 96 Nov 23 00:02 stm
drwxrwxrwt 5 108 108 8192 Dec 6 08:51 tmp
drwxr-xr-x 2 108 108 8192 Dec 5 23:38 tombstones
dr-xr-xr-x 6 108 108 96 Nov 22 23:59 uucp
dr-xr-xr-x 5 108 108 96 Nov 23 01:13 vx
drwxr-xr-x 2 108 108 8192 Nov 22 23:51 yp
There is no use 108 and group 108 in my system. Obviously someone change the file mode to a UID 108 user and delete the user later. Can I find a way to find out when,who and how he/she did it?
BTW: Is this the problem that cause my make_tape_recovery fail?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 05:37 AM
12-05-2007 05:37 AM
Re: some one changed file mode access in /var/
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 05:43 AM
12-05-2007 05:43 AM
Re: some one changed file mode access in /var/
I dont see any dependency of the error with respect to permission problem on /var. There are ioctl error on tape device. Recommending you to run few mt command manually to check if the tape drive is read writable and there is no problem with respect to the tape driver.
Thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 05:45 AM
12-05-2007 05:45 AM
Re: some one changed file mode access in /var/
See yourself:
"Cleaning media in drive"
try a tape for data ;-)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 05:49 AM
12-05-2007 05:49 AM
Re: some one changed file mode access in /var/
This can cause a lot of problems and you need to fix it..
if the problem is only one layer you can fix it by running on a good system:
ll /var |awk '{ print "chmod " $3 ":"$4 " " $9 } ' > chmod.sh
and run the chmod.sh on the corrupted system,
this wil fiks most of the dirs.
after this please run a
find /var -nouser
to see if there are still files that are not asigned corectly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 05:51 AM
12-05-2007 05:51 AM
Re: some one changed file mode access in /var/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 05:59 AM
12-05-2007 05:59 AM
Re: some one changed file mode access in /var/
# more .sh_history
^A^Atelnet 10.136.47.111
clear
pwd
pwd
exit
if root didn't use ksh, I still can get history of the command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 06:01 AM
12-05-2007 06:01 AM
Re: some one changed file mode access in /var/
thanks for you reply. How can i fix this problem except recovery the OS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 06:05 AM
12-05-2007 06:05 AM
Re: some one changed file mode access in /var/
tmp still there, and files' permission in tmp looks ok. (no 108 UID).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 06:15 AM
12-05-2007 06:15 AM
Re: some one changed file mode access in /var/
cd /etc
grep 108 passwd*
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 06:28 AM
12-05-2007 06:28 AM
Re: some one changed file mode access in /var/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 06:32 AM
12-05-2007 06:32 AM
Solutionon a goot system:
find /var -exec ll -d {} ";" |awk '{ print "chown " $3 ":" $4 " " $9 } ' > script.sh
copy she script.sh to the bad system
After the script has runned you can check whit the find that I posted if there are still files that are not ok
run the sript as root.
the script wil look as
chown bin:bin /var
chown root:root /var/lost+found
chown adm:adm /var/adm
chown root:root /var/adm/crash
chown root:sys /var/adm/crash/lost+found
chown root:sys /var/adm/crash/scc
chown root:sys /var/adm/crash/scc/data
ps a full restore is the safist but not all system managers can afort the downtime...
so this is a good workarount....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 06:41 AM
12-05-2007 06:41 AM
Re: some one changed file mode access in /var/
How to find all files own by UID 108 on my system? I want to confirm no more files affect by same problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 06:47 AM
12-05-2007 06:47 AM
Re: some one changed file mode access in /var/
find / -nouser -exec ll -d {} ";" |grep 108
ps properly there is a way to to it whitout the grep but the line works, for more details man find.
(I do not have a sesion ad the moment so can't read the manpage my self....
kind regards, Freek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 07:05 AM
12-05-2007 07:05 AM
Re: some one changed file mode access in /var/
Tape issue i need to change a tape tommorow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 07:05 AM
12-05-2007 07:05 AM
Re: some one changed file mode access in /var/
find -user 108
should work.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2007 04:59 PM
12-05-2007 04:59 PM
Re: some one changed file mode access in /var/
You can use swverify to check ownership:
# swverify \*
And add -F to fix them.