-
Accessing CentOS on Win 7 machine
I can access my Win 7 machine from my CentOS machine, but not the other way around. Can anyone help me to accomplish this?
Thanx
Jim
-
You can use Ext2Read to save files from the Ubuntu side.
http://sourceforge.net/projects/ext2read/
Don't get turned off by the name as it does work with Ext4, although there is a caveat, you can only save the files to the windows side. No add, cut, copy, paste, delete, or rename.
-
Shall we assume this is a networking question vs trying to access filesystems on the same computer and not anything to do with virtual machines too?
-
Yes strictly a networking question. Machines are separate.
Thanx
Jim
-
Would be nice if you posted some details of any error message etc.
Since you have not provided any details I will assume you are using samba.
Please post your smb.conf file but please leave out all the comments to make it more manageable to read.
Did you add a smb password for your user?
-
More Info needed
How are you trying to access the CentOS box?
SSH, Samba, other?
I have Windows 2K through Vista accessing CentOS systems no problems.
-
Originally Posted by michaelk
Would be nice if you posted some details of any error message etc.
Since you have not provided any details I will assume you are using samba.
Please post your smb.conf file but please leave out all the comments to make it more manageable to read.
Did you add a smb password for your user?
No error message on the window side. Just that the machine name is absent from the network and sharing app on the Win 7 machine. My Ubuntu shows up there.
No I do not have a smb password added.
Cannot seem to be able to find the smb.conf file. I looked in etc and found a lot of .conf files, but none for smb.
JRefL5 I believe I am accessing using samba. As I have samba 3x installed on the CentOS machine.
Thank you for all your help everyone.
Jim
-
/etc/samba/smb.conf
Make sure the workgroup name on the CentOS computer matches the Ubuntu computer.
Can the Ubuntu PC see the CentOS PC?
What is the hostname of the CentOS computer. It should not be localhost. If so then you need to change the hostname or add a netbios name in the smb.conf file.
From the Ubuntu PC in a terminal window enter this command. At the password prompt just press the enter key.
smbclient -L CentOS_netbios_name (replace with real netbios name)
-
Here is my smb.conf file.
workgroup = MYGROUP
server string = Samba Server Version %v
; netbios name = MYSERVER
; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.
security = user
passdb backend = tdbsam
; security = domain
; passdb backend = tdbsam
; realm = MY_REALM
; password server = <NT-Server-Name>
; security = user
; passdb backend = tdbsam
; domain master = yes
; domain logons = yes
# the login script name depends on the machine name
; logon script = %m.bat
# the login script name depends on the unix user used
; logon script = %u.bat
; logon path = \\%L\Profiles\%u
# disables profiles support by specifing an empty path
; logon path =
; add user script = /usr/sbin/useradd "%u" -n -g users
; add group script = /usr/sbin/groupadd "%g"
; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
; delete user script = /usr/sbin/userdel "%u"
; delete user from group script = /usr/sbin/userdel "%u" "%g"
; delete group script = /usr/sbin/groupdel "%g"
; local master = no
; os level = 33
; preferred master = yes
; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes
; dns proxy = yes
load printers = yes
cups options = raw
; printcap name = /etc/printcap
#obtain list of printers automatically on SystemV
; printcap name = lpstat
; printing = cups
; map archive = no
; map hidden = no
; map read only = no
; map system = no
; store dos attributes = yes
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /var/lib/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
; [Profiles]
; path = /var/lib/samba/profiles
; browseable = no
; guest ok = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
; [public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = +staff
michaelk: Have a look at my smb.conf file. I think the netbios name is not localhost, however when I log in as root it shows "root@localhost~". I think the smb.conf file shows my netbios name is "MY SERVER"
Thank you once again for helping me. I am new to linux.
Jim
-
A smb.conf that works for me.
I have removed some lines from our config, and edited the IP addressed;
Our base config was created using SWAT
Code:
[global]
workgroup = OurWorkGroup
netbios name = ServerName
server string = PDC_Discription
# # the local host, and its Private IP
interfaces = 127.0.0.1, 192.168.xx.nn
bind interfaces only = Yes
auth methods = guest, sam, winbind
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*Password* %n\n*Re-enter*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
password level = 8
username level = 8
unix password sync = Yes
log level = 2
syslog = 0
log file = /var/log/samba/log.%m
max log size = 50
smb ports = 139, 445
name resolve order = wins bcast hosts
time server = Yes
lpq cache time = 20
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
## some deleted lines ##
logon script = login.bat
logon path =
logon drive = V:
os level = 33
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
ldap ssl = no
admin users = ME, Sup
hosts allow = 192.168.xx.0/24, 127.
hosts deny = 0.0.0.0
lpq command =
veto files = /.*/
veto oplock files = /*.doc/*.xls/*.mdb/*.wpd/*.dbf/
[IPC$]
path = /tmp
hosts allow = 192.168.xx.0/24, 127.0.0.1
hosts deny = 0.0.0.0/0
[homes]
comment = Home Directories
read only = No
inherit permissions = Yes
browseable = No
# # all force group values ( i.e. "Validusers") are defined in /etc/group
[apps]
comment = Application and Data
path = /usr/apps
force group = Validusers
read only = No
force create mode = 0660
force directory mode = 0775
oplocks = No
level2 oplocks = No
[Shared]
comment = Data space
path = /usr/Shared
force group = Validusers
read only = No
force create mode = 0660
force directory mode = 0775
oplocks = No
level2 oplocks = No
I know that some versions of Win-XP (XP-HOME) have problems with Samba Domain setting, check that the Win7 has the same domain name as the samba server is showing.
-
Originally Posted by michaelk
Shall we assume this is a networking question vs trying to access filesystems on the same computer and not anything to do with virtual machines too?
My bad....clairvoyance and reading between the lines has never been my strong suit.
-
Your hostname is localhost (@localhost) and samba will use it as default. The netbios line in the smb.conf file is commented out so it is not being used. The netbios name can not be localhost so uncomment the line and restart samba.
You will need to add a smb password for your regular username. I hope you do not normally login as root.
-
I have tried everything you guys have suggested and still no access.
Thank you for your replies.
Jim
-
I accidentally deleted my post, not thinking I read the original question correctly. Again, what about Putty or Winscp?
I equivocate, therefore I might be.
My Linux/Unix Boxes:
Home: Slackware 10, CentOS 5.3, RHEL 5, Ubuntu Workstation 9.10, Work: RHEL 5, CentOS 5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|