rwfitzy
Explorer
- Joined
- Nov 20, 2014
- Messages
- 53
I've been having an issue with shares for weeks where there would be no permissions after a reboot. I always fixed with smbpasswd -a and finally today decided to find a solution. After a reboot, adding the user with smbpasswd would fail the first time and succeed the second, then a parent share access worked, but no the user home share. I have a share setup as \\Data1\data as well, which contains the user home director. After reading another post, today I did this:
Again, even with these commands, I am still having to do twice and it still does not survive a reboot. Even after this I can now access the parent share, but not the user home share, it reports not accessible from a Windows 2008 R2 server. I'm using the parent share for now, but even that will not survive a reboot. The permissions are all proper, not allowing the user in unauthorized directories, but how can I troubleshoot the home share issue and the fact that I have to re-add the user after every reboot?
Code:
[root@data1] ~# pdbedit -a -u virgo new password: retype new password: Forcing Primary Group to 'Domain Users' for virgo Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL! Failed to add entry for user virgo. [root@data1] ~# pdbedit -L root:0:root datausr:1001:DATA user sysadm:1000:System Administrator [root@data1] ~# pdbedit -a -u virgo new password: retype new password: Forcing Primary Group to 'Domain Users' for virgo Forcing Primary Group to 'Domain Users' for virgo Forcing Primary Group to 'Domain Users' for virgo Forcing Primary Group to 'Domain Users' for virgo Unix username: virgo NT username: Account Flags: [U ] User SID: S-1-5-21-1083486076-3751500825-1769682318-1001 Primary Group SID: S-1-5-21-1083486076-3751500825-1769682318-513 Full Name: Virgo Home Directory: \\data1\virgo HomeDir Drive: Logon Script: Profile Path: \\data1\virgo\profile Domain: DATA1 Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: Sun, 04 Dec 219250468 10:30:07 EST Kickoff time: Sun, 04 Dec 219250468 10:30:07 EST Password last set: Tue, 27 Oct 2015 11:34:15 EDT Password can change: Tue, 27 Oct 2015 11:34:15 EDT Password must change: never Last bad password : 0 Bad password count : 0 Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [root@data1] ~# pdbedit -L root:0:root virgo:1002:Virgo datausr:1001:DATA user sysadm:1000:System Administrator [root@data1] ~# ls -lah /mnt/DATA/virgo total 27 drwxrwxr-x+ 5 virgo virgo 6B Sep 20 18:46 ./ drwxr-xr-x 6 datausr staff 8B Sep 18 08:33 ../ -rwxrwxr-x+ 1 virgo virgo 0B Sep 20 18:46 .windows* drwxrwxr-x+ 4 virgo virgo 5B Sep 19 10:07 Backup/ drwxrwxr-x+ 5 virgo virgo 26B Oct 27 09:57 GIT/ drwxrwxr-x+ 5 virgo virgo 25B Oct 27 10:02 Virgo/
Again, even with these commands, I am still having to do twice and it still does not survive a reboot. Even after this I can now access the parent share, but not the user home share, it reports not accessible from a Windows 2008 R2 server. I'm using the parent share for now, but even that will not survive a reboot. The permissions are all proper, not allowing the user in unauthorized directories, but how can I troubleshoot the home share issue and the fact that I have to re-add the user after every reboot?