Operating System - HP-UX
1855245 Members
5796 Online
104109 Solutions
New Discussion

Re: smbnull user and group

 
federico_3
Honored Contributor

smbnull user and group


I should create oracle user and dba group using 101 as UID and GID but these values are already used by smbnull user and group. This should refer to SAMBA software.
Can i change the UID and GID of these system group and user ( in the comment of /etc/passwd there is "DO NOT USE OR DELETE ) whitout creating problems for the system ?


Thanks
Federico
1 REPLY 1
Brian Hackley
Honored Contributor

Re: smbnull user and group

Fredrico,

The User and group ID's smbnull are used by Samba, also known as CIFS/9000 which comes preloaded on some HP installations.

Check to see if you are using Samba, by examining the /etc/rc.config.d/samba file, to see if RUN_SAMBA=1. You are not using Samba if RUN_SAMBA=0.

If you are NOT using Samba, just edit /etc/passwd and /etc/group and assign another UID number and GID number for the smbnull user and group. For example, 40001.
Thats all you need to do.

If you ARE using Samba, first stop the Samba processes with: /opt/samba/bin/stopsmb
Then check to see if any files are owned by the smbnull user and/or group:
find / -user smbnull -fstype nfs -print
find / -group smbnull -fstype nfs -print
(the -fstype nfs should prevent you from crossing NFS mounts).
If you find any files owned by smbnull, you need to chown them to a UID/GID that you'll be assigning to the smbnull user.
Then, edit /etc/passwd and /etc/group and assign another UID number and GID number for the smbnull user and group. For example, 40001.
Finally, restart Samba with: /opt/samba/bin/startsmb

Hope that helps,

-> Brian Hackley
Ask me about telecommuting!