Is there a way to change a file's name in kernel? Can rename() be used in
kernel thread?
Thanks!
Thanks!
AFAIK, you are really not supposed to do such things. Is it possible?Quote:> Is there a way to change a file's name in kernel? Can rename() be used in
> kernel thread?
--
> AFAIK, you are really not supposed to do such things. Is it possible?
> Maybe - vn_rename("old","new",UIO_SYSSPACE) might work, or it might
> make a horrible mess, and even if it worked today, it might stop working
> with the next kernel patch or new release.
1. change group 0's name from 'root' to 'staff'
Hello,
I run patches Solaris 2.4 on SUN.
I run login from logdaemon-5.6 package which allows
/etc/login.access file which defines access control for users.
I also run s/key su and I have installed unix_scheme.so and these allow su
to root only for users in group 0.
I disabled root's logins via net (only from console) but the problem, when
username didn't match 'root' login searched through group file and found
'root' group.
So I disabled network logins for all people in group root, those who can su
to root. That would be 'nice' for security but it is not.
I thought group '0' can have other name (staff) but will that break
anything ?
- if i change group '0' from 'root' to 'staff', scripts and commands using
setgid (root) and chgrp (root) wouldn't work
- if I add group 0 'staff' after group 'root' I'll have 2 groups with gid 0
which is not complete correct... and I don't know if the second group will
be taken with library functions...
Can anybody help ?
--
...and if you think I'm talking for my employer, you're wrong...
2. looking for a UNIX System Administrator
3. change to new gid or new group name all files of given group name or gid
4. windows 95/98 and an ultra 10/5
5. change group name and gid for all files of given old group name or old gid
6. Sound card for data acquisition.
7. How to change all files' names in a directory
8. newbie - installing non-packaged software
9. What's 'side effects' of Ksh built-ins?
10. Need help changing name in shell for 'NN'/TIN, ELM, etc.
11. Mail Status File with the File Name Changes by Date
12. is it possible to change the 'root' login name?
13. why can't I change the "change time" of a file