View previous topic :: View next topic |
Author |
Message |
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Fri Jun 13, 2014 10:11 am Post subject: |
|
|
I rechecked a lot of forums and a bugzilla report as well. I hope you still have:
Code: |
rc_depend_strict="NO"
|
set in /etc/rc.conf
This should work around the issue, when you have a net.XXX script in the default runlevel (see: http://dev.gentoo.org/~vapier/openrc/projects/openrc/ticket/33.html )
bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3607
|
Posted: Fri Jun 13, 2014 10:21 am Post subject: |
|
|
OK, sorry. That line was turned off.
After turning it on, I am getting a new error:
Code: |
IgorReinCloud igor # smbclient -L localhost
WARNING: The security=share option is deprecated
Enter root's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.6.23]
Server requested LANMAN password (share-level security) but 'client lanman auth = no' or 'client ntlmv2 auth = yes'
tree connect failed: NT_STATUS_ACCESS_DENIED
|
This is a new page, so I will push samba config for reference.
Code: |
IgorReinCloud igor # /usr/bin/testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[public]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = MSHOME
server string = Samba Server %v
security = SHARE
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = No
dns proxy = No
idmap config * : backend = tdb
hosts allow = 192.168.1.9, 127.0.0.1
hosts deny = 0.0.0.0/0
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
print ok = Yes
browseable = No
[public]
comment = Public Stuff
path = /home/samba/public
write list = @staff
read only = No
create mask = 0766
guest ok = Yes
|
Need to go to sleep. Will talk to you in the morning.
Thank you. |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Fri Jun 13, 2014 10:25 am Post subject: |
|
|
OK, good night but we have samba running now. Problem with NT_STATUS_ACCESS_DENIED is, you need to set a samba password for accessing the shares. You should not (and maybe cannot) do this with root. Use a normal user for this. If you dont have a user, create one and use "smbpasswd" to set a samba password for this user. Then try again with the following command:
Code: |
smbclient -L localhost -U <username>
|
It should look similiar like this:
Code: |
smbclient -L localhost -U <username>
Enter <username>'s password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (raspi server (Samba, Debian 7.1))
Virtual_PDF_Printer Printer Virtual PDF Printer
HP_DeskJet_1050A Printer HP_DeskJet_1050A
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]
Server Comment
--------- -------
RASPI raspi server (Samba, Debian 7.1)
ZEUS zeus server (Samba, Ubuntu)
Workgroup Master
--------- -------
WORKGROUP ZEUS
|
greets and good night bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3607
|
Posted: Fri Jun 13, 2014 5:45 pm Post subject: |
|
|
bbgermany,
1. Yes, wicd works. I just added it and it is now running with no problems.
2. Setting the password for the user fails:
Code: |
igor@IgorReinCloud ~ $ smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
machine 127.0.0.1 rejected the password change: Error was : NT_STATUS_RPC_PROTOCOL_ERROR.
|
I still have samba-3 installed on my machine.
Thank you. |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Sun Jun 15, 2014 6:11 pm Post subject: |
|
|
Hi,
please run as root:
If this was running without issues run the following as root:
AFAIK you have to enable a special option in smb.conf for allowing changing the password via smbpasswd as user. Oh and btw, did you check, that samba is running correctly as process via ps. There must be at least on smbd and one nmbd process running.
greets bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3607
|
Posted: Mon Jul 14, 2014 10:16 pm Post subject: |
|
|
bbgermany,
Code: |
igor@IgorReinCloud ~/wxWidgets $ smbclient -L localhost -U igor
WARNING: The security=share option is deprecated
Enter igor's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.6.23]
Server requested LANMAN password (share-level security) but 'client lanman auth = no' or 'client ntlmv2 auth = yes'
tree connect failed: NT_STATUS_ACCESS_DENIED
|
Looks like we are making progress.
Is this error because I have "security=share" or something else?
Thank you. |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Tue Jul 15, 2014 8:50 am Post subject: |
|
|
Hi,
i dont have set "security" in my smb.conf. Remove or disable the line and try again.
bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3607
|
Posted: Wed Jul 16, 2014 2:33 am Post subject: |
|
|
OK, that did it.
Now about "security=" line: why did you remove it? What are the consequences of such removal?
Thank you. |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Wed Jul 16, 2014 6:20 am Post subject: |
|
|
Hi,
I used a default config for the basics and "security" wasnt set in this case. This is my basic file for shared homdirs:
Code: |
[global]
server string = %h server (Samba)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
load printers = no
printing = bsd
cups options = raw
printcap name = /dev/null
disable spoolss = Yes
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j
[homes]
comment = Homedirectories
read only = No
browseable = No
browsable = No
|
bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3607
|
Posted: Fri Jul 25, 2014 6:19 pm Post subject: |
|
|
Thank you for the help. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|