Ok, this is a complicated one, and possibly not entirely a linux question, but here goes-
I have a Synology server, set to backup to an external USB disk. As I understand it this disk is formatted as ext3.
The server recently crashed, so I need to get the data off the USB disk.
Weird thing 1: if I used an ext3 reader for Windows, then I can only see directories on the USB disk, no files. Yet if I mount it back on the (now crashed, but still just about bootable) Synology, then I can see all the files just fine.
Since I can see the files on Synology I figure the Windows ext3 reader is faulty. So I copy all the files to a spanky new QNAP NAS. Telnetting into the NAS I can see everything is present and correct and all the data is there. Great!
Weird thing 2: If I try to access the data via a Samba share, I can't see any of the files. Only directories!
Weird thing 3: I tried to make it all completely open by chown to my user and the "everyone" group, and then chmod uga+rxw *. This made no difference.
Weird thing 4: If I select "show hidden operating system files" in Windows then all the files appear.
Are there some weird "extra" permissions that Synology are using? If so how can I get rid of them? Anybody have an idea what is going on?
My worst case is I'll have to boot the Synology back up and copy the files via that, but I'd like to know whats going on. Oh and black mark to Synology here for making a backup that is hard to use on anything but the original system.
I have recently installed Fedora F11 with a Samba server. The smb.conf seems fine but I cannot see any of the files in the share from a Windows machine. I am probably missing something unbelievably simple but driving me nuts!
I can see the machine and share from windows
When logged in as the user fred I can see all the files in Linux - most are owed by fred.
smbuser: Code: # x_name = SMB_name1 SMB_name2 ... root = administrator admin nobody = guest pcguest smbguest fred = fred smb.conf: Code: [global] workgroup = Workgroup server string = Samba Server Version %v
netbios name = MachineName
hosts allow = 127. 192.168.0. ......... [Docs] comment = Main Documents path = /mnt/documents read only = no browseable = yes valid users = fred ......... The other thing I find a bit odd is that Code: service smb restart does not effect the way that the windows machine sees Samba. It appears that you need a full restart to get the changes to show properly.
My server info: SUSE 11.3 , authenticated against LDAP, I am able to log in using LDAP credentials. I did run smbpasswd -w password
After I configured the smb.conf file, I try to do this on the Terminal to make sure it will work in Windows machines but I got this error:
user@mybox:~> smbclient -L mybox.mydomain.com Enter user's password: (I enter the user password here) Connection to mybox.mydomain.com failed (Error NT_STATUS_CONNECTION_REFUSED)
so I went to /var/log/samba.log to check the error file, I got this :
Connection to LDAP server failed for the 1 try! [2010/12/10 18:08:50.919813, 1] lib/smbldap.c:1330(another_ldap_try) Connection to LDAP server failed for the 2 try! [2010/12/10 18:08:52.133624, 1] lib/smbldap.c:1330(another_ldap_try) Connection to LDAP server failed for the 3 try!
and it kept going on and on until I stop it.
Here is my smb.conf file, please take a look to see what I've done wrong here. I tried to to take out WORKGROUP in GLOBAL but there were error like " Work group name x.x.x.com is too long, so I put in WORKGROUP = etc.
[global] workgroup = mybox passdb backend = ldapsam:ldap://ldap.my domain.com:11389/ ldap suffix = dc=my domain,dc=com name resolve order = wins bcast hosts ldap machine suffix = ou=Computers ldap user suffix = ou=People ldap group suffix = ou=Groups ldap admin dn = "cn=sambaLabs2,ou=roles,dc=domain name,dc=com" ldap ssl = start tls server string = "my File Server" security = user log file = /var/log/samba.log log level = 1 Max log size = 50 wins support = yes wins server = my wins servers here winbind enum users = no winbind enum groups = no unix extensions = no wide links = yes hosts deny = ALL hosts allow = 192.168. interfaces = lo eth0 bind interfaces only = true browseable = No read only = No usershare allow guests = No
load printers = yes printing = cups printcap name = cups printcap cache time = 750 cups options = raw map to guest = Bad User
[homes] comment = home directories browseable = No valid users = %S read only = No writable = yes create mask = 0660 directory mask = 0770 inherit acls = Yes inherit permissions = yes
In my fstab I have this entry to connect to my NAS box:
Code: //192.168.0.1/share /mnt/share cifs username=user,password=******,auto 0 0.For a while it was connecting on startup with no problem (it connects via wifi). But now when I navigate to the directory there is nothing there. However if I run mount it reports this:
I am trying to see share files on my windows machine to my linux machine. I would like an answer to how to fix the problem. This is where i am at i am using my own network to learn who to use nmap properly. I ping my whole network with nmap -sS -O. Then i used nmblookup -a which gave me the infromation i needed. Then i run smbclient -L computername -I ip address -N
This will not show me the windows os this only show me my laptop. What can i change for this to show me the other computer on this network. The port i am wanting is open. I want to be able to mount the share files and move them to my computer i am going to use the commands put and get to move the files when i am able to get to the smb: >
I'm trying to make my music directory, located on my Ubuntu box, available to all the windows clients (Windows 7, to be specific) located around the apartment. It seems to work fine, I can see and read from the shares from my windows box, but deleting files doesn't work, I just get a permission denied.I've tried being as lenient as I can in the smb.conf, as well as setting 777 on the affected files, nothing changes. I've read, from my various googling, that the octal file permissions aren't as important as the samba permissions. Okay fine, but how do I tell samba to ignore permissions and let everyone delete files? I've read that samba works with samba users, but again, I don't care about users, I just want a global share that anyone can connect to and read (and delete) files.
Here's my smb.conf file: http:[url]...As you can see, I've played around a bit with options, but I just can't seem to get anything to work.
The file permissions on the folder are RW for user,group and world.(umask=0000) My main problem is with SELinux, I've tried to audit2allow and that seemed to work, all I had to do then was chcon the directory and files to type samba_share_t but the tool fails with Operation Not Supported. Am I to assume you simply cannot share files from a mounted ntfs drive under SELinux? Because I've just spent 2 hours trying and I've just about ready to just give up and just go back to windows when I need to share those folders. There's no way i can copy the folder contents to my Linux partition, far too big for that. Has anyone EVER been able to do this? Do I have to disable SELinux to do it?
I can not edit my own .ppt file from samba share. Current desktop OS is windows 7. Samba server having RHEL 5 with following samba packages installed.
Code: libsmbclient0-3.5.6-43.el5 pam_smb-1.1.7-7.2.1 pam_smb-1.1.7-7.2.1 I can able to edit and save the file if I copy this file from samba to local system. But from Samba share it open in read only mode.
I have a LAN of about 70 computers that I would like to share media files between. I have gotten to the point with Samba that I can view the files without a username/password from client PC's. I would like to make all the folders read only except for one which will be writable for everyone. The thing that I am having a hard time with is allowing a couple of administrators (on Windows 7 machines) read/write access for all files/folders. I am completely new to Ubuntu and Samba so please make explanations thorough. Here is /etc/samba/smb.conf file:
I am attempting to share a folder from an existing drive that has been formatted in NTFS. I simply right click on the folder, goto share, and I can see the option to share to UNIX and that works with no problems. My question is; why is the SAMBA sharing dialog grayed out?
I've been building my digital music collection for some time and used to house it on a local drive with no quality issues. A while back I built myself a file server using ubuntu and mdadm in a raid1 configuration to protect against potential drive failure. I link my iTunes library to the music files via a samba share and everything works great on the surface. I've started to notice that random songs are becoming corrupted with pops clicks and silent pauses. I'll even re-download an album and notice that it's corrupted a few weeks later. Now I'm at a loss to what is causing this issue; I ignored it at first but it seems to be getting worse and more widespread as time goes on.
Do you think this could be caused by mdadm? It reports that all is fine via 'cat /process/mdstat' but I wouldn't know where to look or what to look for if there were syncing issues. The other possibility is that I have iTunes set to keep my music folder organized for me, but I've never heard of it actually corrupting the files it shuffles around. The bottom line is that my library is getting crappier as time goes on and I cannot stand for that!
I am setting up samba on my CentOS server for the first time. I am using webmin to configure samba. Here is the smb.conf
[global] netbios name = KISKA cups options = raw load printers = yes server string =
I can see the domain name "KISKA" in the "network" tab of windows explorer, however when I click on it I get this error: Windows cannot access \KISKA check the spelling of the name. otherwise there might be a problem with your network. Under the details of this error I get this: "The network path was not found" Also I have stopped iptables so it cant be firewalled
I would like to know how can I get permission to subdirectories of a share other than what main share has. I do not want them to have same share I mean for example I share "sharetest" and it has full access for A and B and C groups but "sharetest/foo1" has read only access for A group and "sharetest/foo2" has read only access for B group and "sharetest/foo3" has read only access for all of them.
I have a Debian 5.0 system, fresh install, updated with aptitude. Now i'm using vmware to test my system, but the 'real' system, is a small network with around 30 workstations connected in a cisco switch + router. So i test the configuration at home, and when it's working and done, i will copy it to the real network, because i don't want to mess it up
So i installed the newest samba to act as a PDC. You can read my configuration in the following lines:
I added root with 'smbpasswd -a root' command. When I try to connect to the domain with a Windows XP, it says: ' The username cannot be found '
I installed samba server on fedora13 last week and share some files from samba server GUI. I also created samba user and password for shared folders but I can't get access samba share folder from neither fedora machine nor Windows XP. When I open samba share from other fedora such as smb://192.168.10.2. I can see share file and when I browse folder, password required box is appeared but after I put samba username and password. The Error message is Unable to mount location Failed to mount Windows share. Even when I browsed samba share from windows xp.
Error message is \192.168.10.2smbshare is not accessible. You might not persioon to use this network resource. Contact the administrator. The network path was not found. How can I get access samba share from both fedora and XP that is what I installed on server:
I've setup a samba share with RecycleBin option. However, there is no cleanup and soon will saturate free space.
I'm trying to plan a command that each week clean the content of those dir or the directory itself.
The dir tree is like /home/ :user1 Dir1 Dir2 RecycleBin
To be careful to all possible situations I'm testing this line in directory with spaces in names. I know is ugly and ... and ... but users are just used to and they don't care about me And, having this line working for spaces I can use it for other situations other than shares.
File o directory non esistente = File or directory does not exist
Server: Ubuntu Server Edition 8.04 /currently firewalled to only allow client ip Client: Ubuntu Desktop 8.04 /currently firewalled to only allow server ip
Same userid and groups set up on on both. I have taken two linux courses and can maneuver around fairly well, but am still pretty newbie at all this. We have loaded Samba on a server and created a Samba share. I AM able to access that share via Windows Vista, but have not been able to successfully mount the share on the Ubuntu desktop via the fstab file. I have tried the following ways: serverip:/path/shareddirectory /net ext3 user,sync 0 0 and the samba way..
After modifying fstab, I reboot. No luck since that either way.Only ONCE after modifying it samba way, I was prompted to enter credentials, but after login I was unable to view the files on the server. From this point on either way, if I run commmand 'mount -a' the response is "Special device serverip:/path/sharedirectory does not exist" Also! I am able to ping client-to-server, but not server-to-client.
I have a samba shared folder in my flash disk. Yesterday I installed ubuntu 11.04 and now sharing is not working any more. I do the usual procedure (that worked so far), I right click my folder > sharing options and tick "share this folder" as well as "Allow others to create and delete files in this folder" but I dont get the usual messages asking to add permissions automatically.When I try to mount my folder in another pc with linux, I get permission denied and that the folder is only readable and in another, windows cannot find the network path to my folder.My folder has about 10.000 files. asking to add permissions automaticallyI created another folder on the same flash and when I create share I get the message asking to add permissions automatically but it is not visible either. I even cant see my folder in "my places" > network, so it is not a matter of the mounting command
want to made 2 users in samba by which windows machine we access share, say user1 has read,execute permission, user2 has read write delete update full permission. we have done user1 configuration as premia user. we need your guideline for user2
we change the smb.conf file # less /etc/samba/smb.conf [global]
Start>Run>\192.168.0.1storage gives me "The specified network password is not correct." It lists my domain as "ANTEC" which is the name of my computer, though I've changed the workgroup to WELLS. I've run:
I have a samba share that I mount locally at boot through fstab. The share is writable and if I access the share directly, say with konqueror and smb (smb://hostname/sharename) then I can do anything I want (create, write, delete, edit, files/directories). I have a mount point on my local machine
and I (username dtest) was unable to do anything except read files and create directories trying to do them to the local mountpoint except as root. I figured it would be a matter of
chown -R dtest /shares/mp3
but I was unable to do that even as root, I kept getting permission denied. When I did
ls -alt /shares/ it told me the owner was 1000 and the group was root. Dtest was already a member of the root group and I was able to
chmod -R 774
as root but I still couldn't do anything except read and create directories directly via the mountpoint. Ultimately I solved this by changing the uid of user dtest via kuser and then just chowning my home directory back to dtest. It seems like as root I should be able to change the owner of the directory. I know it's because this is a samba share, but it doesn't make any sense why root couldn't just chown it. Is there another way to change the owner of a directory, or is this set by the machine hosting the samba share?
I have a samba share setup as the following. When I browse to it from PC's added to my AD domain, they connect instantly. When i browse to it from a laptop that's not part of the domain, i get prompted for login credentials. what credentials should I be putting in? I can't seem to figure it out. or is it because i have the workgroup set to what my AD domain name is, and the laptops aren't part of that domain.
path = /data/photos browseable = yes force user = pictures force group = picturesgroup