I just recently built a new linux server Redhat Enterprise Linux 6 and installed Samba version 3.5.4-68.el6.I copied a configuration file from an old Linux Server (Redhat Enterprise Linux 3.0AS) with a properly running Samba version 3.07131 . To make sure that everything will be ok, I created the same group and added the users on that group and created the same directories with the file name and attributes as that of the old server. Evrything seems fine as I can see all the shared folders on the windows XP and windows 7 Machines until I tried to write something on those folder. I keep getting the message that the action is denied and I need permission to perform that action. I do not know what to do next, hence this post.Below is the copy of my configuration file.
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
I have samba server. but winxp and vista supports to share files and folder.but windows7 not supported. i am using very old version redhat9. but i cant able upgrade lot of informations is there. please how can access folders in window7 through samba in redhat9.
I have mounted samba volume and I need to have write permissions for every new folder that's being created (currently, by default, on every newly created folder i have only read and execute permissions).I tried changing umask, but with no effect on mounted folder, umask changed only for local filesystem. I tried mounting with umask option, but with no effect again.I'm using ArchLinux on this machine, and I installed samba using default package manager (pacman).
I need to know is there any way to record or tracking or make logging if when user samba delete files or folders i can know that, cause sometimeon samba server some users complain they lost files, though i have daily backup and i can restore their files, i just want to know if or maybe some other users in one group accidentally move or delete the files.
Occasionally, with no warning and no cause that I've been able to see, everything that I try to open will produce an error message saying that an associated configuration file For example, I try to open dolphin, and I get a message saying: 'Configuration file "/home/<user>/.kde/share/config/dolphinrc" not writable. Please contact your system administrator.' I get similar ones for konsole, open office, and everything else I try to open, except firefox, which I installed by hand. Konsole still works after this error, but dolphin and open office do not. This never happens directly after startup (it usually happens about an hour after), and always happens to everything - I never get this message for just one program, while everything else works fine. I've tried deleting /home/<user>/.kde/ to 'reset' kde, but that hasn't helped. In case it helps, I'm running Squeeze (amd64) with kde 4.4.5.
I keep having failures with samba mainly that each day the /var/run/samba folder seems to dissapear so Samba doesn't start, normally I can just add the folder back and samba will start and work ok but today it fails.Does anyone know why this folder may just dissapear and if there is something I can do to get Samba working?
I'm experiencing an odd problem under karmic where I can create and delete folders via Samba from an XP box, but I can not rename folders. I get an "acccess denied" message.I've been using linux and samba for years and I've never seen anything like this.My samba configuration is quite simple..... I'm wondering if this is a bug.
[global] workgroup = HOUSE server string = %h server (Samba, Ubuntu)
I can't access some folders on my samba share. For example I set the Video folder to share and to allow creating or moving files. But inside the video folder I cant access some folders. This only happened after I upgraded my samba client.
I attempted to share my ~/Videos folder using the Folder Sharing dialog when right-clicking a folder in Nautilus. It started to install but failed partially spitting out some error that I didn't bother to read/write down. It asked me to restart which I did. But now when reattempting to share the folder, I get given the following message: 'net usershare' returned error 255: net usershare add: cannot create tmp file /var/lib/samba/usershares/:tmp0BRWpm
I've looked around for a thread for this particular error, but I can't find anything specific to the "cannot create tmp file" issue. I'm assuming it's some folder permission issue. I tried uninstalling and reinstalling samba from the Ubuntu Software Center.
I have configure few folders access by 3 users, In common folder only users that create that document can do changes. The rest of the users can only read the file but can not do changes. Ownership of the folder is admin, group is sambashare which already have the access create and delete files. All the 3 users already in sambashare main group, and they only can edit the file that they copy or create to the common folder .........
Win7 x64 host with Virtualbox installed running Ubuntu 32bit guest OS. I have Samba installed and I am sharing a folder to have read access from Win7. The folders I tried to share (here 'folder1-3') have been added in the conf.d in etc/samba/ like this - I used these 3 variants, all showed the same problem:
[folder1] path = /data/mp3 read only = yes guest ok = yes
While I can connect to all of these from Windows and map them in Windows Explorer, I am unable to serve those files using my FTP server that is running on Windows. The folders simply do not show up when I add them as folders to serve in FileZilla. The problem I am assuming is causing this is the fact that FileZilla is running as a different instance and not on an administrator level. I cannot however add any users to the permissions list on the Windows side. The 'security' tab of the mapped folder shows the following Users:
EVERYONE root (Unix user oot) root (Unix group oot)
None of these seem to have rights to 'read' or 'list folders', the only permissions listed are 'special permissions'. Does anyone know how I can assign the group EVERYONE privileges to read and list files and then be able to serve this shared folder through my Windows-run FTP server?
I have been looking in the forums but I found no solution for my problem.I already configured Samba and I am sharing folders, printers, etc. (Samba, authentification mode = user, guest account = nobody, share the folder give access to them, enable the permission to access, write, etc.) and seems to be working well.I am trying to connect a Windows to my shared folder in Ubuntu. The only problem is that Samba rejects it and doesn't ask for the password. It just drop the users (from Windows and Ubuntu systems) that try to access to my folders.So when it do in a Terminal sudo smbpasswd -a USERNAMEand I type no password, then it works they everybody can access to those shared but when I type any password then it comes back to the same problem that Samba never asks for passwords and rejects the users.
So the solution would be just give no password to share the files, but the other problem is that every time I restart the user session (restarting the computer, logging out, etc.) it just comes back to the same problem that Samba drops the users and doesn't ask for the password. Seems that every time I restart the system just forgets that I set no password.Another thing is that when I set authentication mode = shareThen nothing works. No password, no access just is possible to see it.
- OpenSUSE (Workstation configured to log in using Active Directory Information) - First Windows Server (Domain Controller) - Second Windows Server (Provide shared folders for users to use)
How do I map domain users from second Windows Server (like \windowsserverusers<user>) to a folder (like /home/<domain>/<user>/<user_personal_folder>) in OpenSUSE computer ? It should be via samba right? Trying checking something in /etc/samba/smb.conf but couldn't find anything.
Still working on the mask of files for shared folder. I now have a shared folder with the exact behavior I expect : Code: sudo addgroup share_group sudo mkdir /media/volume/shared_dir sudo chgrp share_group /media/volume/shared_dir sudo chmod g+s /media/volume/shared_dir sudo chmod 770 /media/volume/shared_dir sudo setfacl -d -m group::rwx /media/volume/shared_dir sudo setfacl -d -m other::--- /media/volume/shared_dir emma@box:/media/volume/shared_dir$ ls -al total 8 drwxrws---+ 2 root share_group 4096 2010-02-09 12:53 . drwxr-xr-x 8 root root 4096 2010-02-09 11:58 .. -rw-rw----+ 1 emma share_group 0 2010-02-09 12:53 test By default, user from the group can modify this file. That's perfect.
I have define the share in Samba this way : Code: [share] comment = Shared Folder path = /media/volume/shared_dir browseable = yes guest ok = no read only = no hide dot file = yes # force group = share_group # create mask = 0660 # directory mask = 0770 # force create mask = 0660 # force directory mask = 0770
When drag & dropping a file in this share, here is the default mask: Code: emma@box:/media/volume/shared_dir$ ls -al total 192 drwxrws---+ 2 root share_group 4096 2010-02-09 12:54 . drwxr-xr-x 8 root root 4096 2010-02-09 11:58 .. -rw-rwx---+ 1 emma share_group 6148 2010-02-09 12:54 .DS_Store -rw-rwxr--+ 1 emma share_group 176684 2009-12-21 23:33 IMG_7487.jpg
So the dropped file have execution rights for the group, and read access for other. I expected it to have the same rights than the file created directly using the touch command. I tried to play with the mask options, without success. The file has been dropped from my mac, which is a Unix like OS. I guess that some authorization access are inherited from the original file, for the user and other parts. But where does the group authorization come from ? Moreover, is is possible to define in samba a default mask, whatever the authorization of the original file?
Below is marina, a sales rep, and brian, a super user of sorts. id marina: Code: uid=1011(marina) gid=1006(office) groups=1006(office),1005(sales) id nick: Code: uid=1000(brian) gid=1006(office) groups=1006(office),118(admin),1001(full),1002(processing),1003(management),1004(it),1005(sales)
Below is the directory with all the sales reps folders. ls -la: Code: total 60 drwxrwxr-x 15 root it 4096 2011-02-10 20:06 . drwxr-x--- 9 root office 4096 2010-11-19 12:40 .. drwxrwx--- 13 katya full 4096 2010-12-07 12:36 Katya drwxrwx--- 18 lana full 4096 2011-02-08 17:09 Lana drwxrwx--- 23 marina full 4096 2011-02-10 18:09 Marina drwxrwx--- 4 mike full 4096 2011-02-01 12:42 Mike
With this setup marina only be able to browse her folder, but she can browse all folders and has full write access to all folders. This leads me to believe something is up with the smbd.conf file, which is below.
Code: [global] workgroup = COMTREAD null passwords = no server string = Root Server dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 .....
In this case the valid users directive would not work cause I am not making a share for each user. I had this on other shares like the db2 share. My windows box lagged heavily when I tried to access that share with an invalid user. How to deny users the ability to modify permissions I would also like to do that.
I've set up a ubuntu server at home with the intention of sharing files with windows clients, so I've installed samba. I have no security issues so I've allowed public access to the shares and I can access them fine from all windows machines. I also need to preserve the dos attributes for files and folders using 'map hidden', 'map system', 'map archive' which works great for files but not for folders. I've got a number of folders from my windows box which I would like to keep hidden (for tidiness more than anything) but when I transfer them to the samba share, they become visible again and I can seem to control their visibility at all from windows or from ubuntu. Do I take it from this that samba can only manage to maintain dos flags on files and not on directories?
This is the relevant part of the samba.conf file Code:
I have an intermittent issue with with Samba. I can access my samba share with windows xp and vista using windows networking and even by mapping the share to a drive. The problem is that the files and folders disappear inadvertently and I can only access them again if I open the share again from the start with windows explorer. Selinux is disabled and the firewall ports for samba are open. The following software is installed:
I've installed Ubuntu Server 7.10 Gutsy and Webmin 1.500 on it. The thing that I want to do is: I want to share a folder an sub folders for windows users ( guest user) I should modify those folders from my ubuntu desktop 9.10 karmic they are all same folders. Is it possible? if yes how can i make it. you can tell from webmin or samba configuration file.
I have created a shared folder in my ubuntu. And checked allow guest user access. I can access this folder with my other ubuntu computer connected trough LAN.The question is if anyone have my IP address can he/she access to my shared folder?Are samba shared folders shared over internet too? If so, This will be a very dangerous security problem.
I have a shared NTFS partition ("shared") that I use for data for both Windows and Ubuntu. How can I mount the music folder on shared to $Home/Music, and the Videos folder on shared to $Home/Videos? I want to mount the different folders on the partition to different folders in home.
Just like the title states, as soon as my server comes up, I see the samba share that I made and can browse it just fine.
I don't see the printer share nor can I print to the shared printer until I execute service smbd restart from an ssh login. Then I see the printer and then I can network print.
Before restarting smbd, I do check to see if it's already running and it is (two instances are running in fact). When I restart smbd, there are still two smbd services running but they have higher PID numbers (and I can then print).
I'm running 10.04. how to make it all start up happily the first time without any intervention from me?
I am configuring phpBB3 on a Fedora 14, php 5.3, and Apache 2 and I am having trouble setting permissions on certain directories and files. I have chmod 777 the following contents and still get the unwritable error:
Ive managed to install samba, I've shared a folder. I can access from a Windows 7 machine via \ubuntupublic. I can put files in the folder form the ubuntu machine and edit them on the windows box. I can put files in the folder/share from the Windows box but then I cannot edit them on the Ubuntu machine (they are read only and have a "Lock" over them). I can fix this by going to the properties of the file/folder in Windows and manually assigning "Everybody" full control (then the lock disappears and all is well.) I want read/write access to all the folders contents from both machines all the time (security is NOT a concern I WANT the permissions wide open) what am I doing wrong?