Now, I know there are lots of samba questions (about 1400) on ServerFault, and I have browsed through about half of them at least, and not been able to use any of the answers to solve my problem.
We are installing CentOS 6.2 on a new, blank machine - clean install; it will run as a network server to host Asterisk.
I want to configure the machine so I have full, administrative access to root (I mean the "/" root) from my Windows workstation.
This will enable me to use my own, comfortable machine (and Notepad++) to edit all the configuration files. In other words, I should be able to open \\mylinux\etc\samba\
in Windows Explorer and then have full rights to edit smb.conf
with my Windows Text Editor.
I have this working very well with CentOS 4, but can't get it working in CentOS 6.2. In the older OS version, there was a GUI for everything, but now I need to learn and do everything from the CLI. I still use the GUI for a few things that I haven't learned how to do form the CLI yet, so I will still make references to the GUI in my notes here.
Now that you know my problem and my goal, here are some details:
smb
is running and installed and set to runlevel 35.nmb
is running and set to runlevel 35.- the firewall is wide-open on eth0 and
network
is ON (I ran this command:iptables -A INPUT -s 192.168.0.0/255.255.255.0 -j ACCEPT
) - I have added my own user account on the linux box to the
root
group. - that user account has the same username and password as my Windows computer.
- samba is configured to know the name of my Windows workgroup
- I am able to ping
\\mylinux
from\\mywindows
just fine, and vice-versa, also. - If I open
Network
in\\mylinux
, I get an error saying: "Failed to retrieve share list from server" which I posted about here. - If I do a
net view
from\\mywindows
, then it does not see\\mylinux
at all. - samba is configured to share the root drive:
.
[root]
comment = Root Directory
path = /
valid users = @root all root group
invalid users = None
writeable = yes
browseable = yes
also, in
/etc/samba/smbusers.conf
, I have made my entry:myuser = myuser
Now, you would think that I could access the linux share at this point. But when, from my Windows computer, I try to map the path \\mylinux\root\
, I get an error saying the destination does not exist. On my old linux machine, I am able to browse even to \\oldlinux\
and get a list of shares. I can't seem to duplicate the functionality!
[EDIT]
Okay, I disabled the firewall completely, and now I can browse the files wherever I want to go. What remains is the permissions now to edit a file like smb.conf. In other words, my user account that I use to browse the files, which is in the root
group, also needs root
permissions. How do I get that?