Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have configured samba in my linux system which is running on redhat 4.2. I can able to see the folders in Windows Xp Professional system and i have the permission to access it. But at the same time if try to access Windows folders in linux system, it throws an error like You do not the permission necessary to view the contents of "Windows Network:computer name".
When I setup a few Samba test systems I found I had issues with selinux interfering with Samba, I do not get to the bottom of the issue but found if I disabled selinux with the command "setenforce 0" my connections between windows and my samba server worked.
Give it a try and see if it is related, you can re-enable selinux with the command "setenforce 1"
If that does not work can you post your /etc/samba/smb.conf file?
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2010/12/03 11:15:19
# Global parameters
[global]
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
wins support = Yes
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
cups options = raw
[homes]
comment = Home Directories
path = /bacups/database
invalid users = nobody
read only = No
hosts allow = 200.168.1.
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
I also tried "setenforce 0" but no use. Still i am getting same error. I have tried to configure samba both from smb.conf and swat. But i didn't get the result out of it. Is there anything to configure in Windows XP system?
Thanks, this works. But i am getting error while i try to access folders from linux system. the error is :- you do not have permission necessary to view the contents of Windows network:machine_name.
If i try to access from CLI, it is displaying the shared files of the Windows machine. The issue is while i tried to access it through GUI.
the command is :
# smbclient -L <hostname of Windows/linux machine> -U <username>
For example:
Sharename Type Comment
--------- ---- -------
BrotherH Printer Brother HL-1070
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
SharedDocs Disk
yis123 Printer \\Yis\yis123
HPOffice Printer HP OfficeJet G95
testing Disk
folder1 Disk
New Folder Disk
folder2 Disk
Printer2 Printer Canon Bubble-Jet BJ-130
ADMIN$ Disk Remote Admin
C$ Disk Default share
Domain=[ORANGE] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Let me guess - you're trying to access the share from Nautilus? If that's the case then the problem is Gnome lacks the ability to store username/password credentials for samba shares (which would allow you to write). You can however browse shares as read-only in the GUI. KDE sort-of works, and can store usernames and passwords which allows you to copy files to shares but in my experience it's buggy and I've had problems with deleting files.
If you're ok with read-only access then try adding "guest ok", like so:
Quote:
[homes]
comment = Home Directories
path = /bacups/database
invalid users = nobody
read only = No
hosts allow = 200.168.1. guest ok = Yes
and it should work for read-only. The most stable solution I've found so far is to simply mount the share at the CLI:
But it's annoying to do this every time, so you can look into mounting the samba share through /etc/fstab. I don't do this myself so unfortunately I don't have an example readily available.
hi,
the problem got solved. I simply mounted the windows shared folder in linux
smbmount //Windows_computername/shared_folder /linux_mountpoint -o username
ex: smbmount //Orange/folder1 /mnt/windocs -o administrator
password:
To check whether the folder has been mounted or not use the command df -h
Now open file browser(nautilus) and specify smb:///Orange/folder1. This will ask you to enter the username and password of Windows system. Type in the username and password, you are ready to access windows shared folders now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.