Ubuntu Security :: Clean Mask For Files And Folders Through Samba

Feb 9, 2010

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?

View 1 Replies


ADVERTISEMENT

Server :: Log User Samba Who Delete Or Move Files/folders On Samba Server ?

Feb 8, 2010

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.

View 1 Replies View Related

CentOS 5 Server :: Samba Files And Folders Keep Appearing And Disappearing?

Dec 15, 2009

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:

samba 3.0.33-3.15.el5_4
samba-client 3.0.33-3.15.el5_4
samba-common 3.0.33-3.15.el5_4

[code]....

View 8 Replies View Related

Ubuntu Security :: All Files And Folders Are Read Only?

Sep 6, 2010

I've recently upgraded to 10.04 and have noticed that all the files or folders I've been creating recently are read only. I can manipulate the folders on my ubuntu system itself and create new entries, folderes, subfolders, and save files. IE a payment receipt in pdf format. However if I then try to move or copy any of these to my DROBO (data storage device) the file gets the LOCK Icon on it and becomes read only. If it is a subfolder I can no longer copy to it and if it's a regular file, say a pdf or flv I can't modify it. Attempting to change the file permissions on either my ubuntu desktop or any other folder works but once it goes to the drobo I lose the ability to change it off of ---. Again, this was all working fine before doing the upgrade to 10.04. Yes I did do a clean install to 10.04.

View 6 Replies View Related

Ubuntu Security :: Set Permissions For NEW Files And Folders

Mar 14, 2011

I have a shared partition on Ubuntu, 'dm-6', if I create a new folder in it, it has 'teocomi' as owner.If I create the folder from another (windows) PC the owner is 'nobody' and from Ubuntu I have to chmod/chown it in oredr to edit its content...Is there a way to set automatically permission and owner for newly created folders and directories?

I tryed with:

Code:

sudo chmod u+s -R /media/dm-6

View 5 Replies View Related

Ubuntu Security :: Rkhunter Suspicious Files And Folders?

Apr 1, 2010

I have been running rkhunter but how do i view the /var/log/rkhunter.log? I have tried using: sudo /var/log/rkhunter.log but all i got was "Command not found?

View 6 Replies View Related

Ubuntu Security :: Create 760 But Even If Change The Mask It Still Generates The Same Permissions?

Jan 23, 2010

I have a setup samba and want to get the correct security permissions when my wife creates / copies files from her camera onto the shared/mapped drive on her new laptop (windows 7) I want the permissions set to 770 or maybe 760. See my config below.

Now I can get it to create 760 but even if I change the mask it still generates the same permissions. After every change I restart the samba service. the umask is still 0022, do not know if that makes a difference? The directory permission's are correct with this mask. Do I need to look at groups?

[Code]...

View 1 Replies View Related

Ubuntu Security :: Accessing NTFS-encrypted Files And Folders?

May 14, 2010

After trying Truecrypt, LUKS, and Ecryptfs I decided to try NTFS encryption. Now, on a dual boot computer from Ubuntu I can browse the encrypted folders but can not open the encrypted files. All attempts produce access denials yet the Unix file permissions appear to be "0777" (owner, group, and world readable-writable).

Is there someway to get Ubuntu's NTFS software to recognize and decrypt the encrypted files? Would a different NTFS package work such as NTFS-3g?

View 2 Replies View Related

Ubuntu Security :: Restrict A User From Seeing Hidden Files And Folders?

May 23, 2010

restrict a user from seeing hidden files and folders?

View 8 Replies View Related

Security :: Create A Backup Script For Files / Folders?

Jan 18, 2010

I m going to create a backup script for my files/folders...

This script creates tar.gz of the folders/files you want.

This i want is to encrypt these .tar.gz files and when i need them to decrypt them. Does anyone have an idea on how to encrypt these files ?

my script looks like this :

Code:
BACKUPDATE=$(date +%d%m%Y)
cd /home/n3t
echo "taking Backup of your home/n3t/Downloads dir"
tar -czvf /media/disk/BACKUP/home/Downloads/$BACKUPDATE.tar.gz ./Downloads

View 2 Replies View Related

Ubuntu Security :: Finding Two Strange-looking Files On Windows Shared Folders?

Mar 30, 2011

Recently I've been finding two strange-looking files on my Windows shared folders! Their names are 'khy' and 'qffhtx.exe', they appear as hidden, and they're hard to delete!! especially the first one because it has no extension. I use Ubuntu 10.10, but I am worried because I also dual-boot Windows XP. Today I tried to open the .exe file in nautilus to see what is inside and I received the message "Unable to open archive", 'khy' is apparently an empty text file. Then I unmounted my /home partition so my files are out of the way, and I ran the .exe file using WINE,

Now I have a strange-looking applet on my top panel!! and it says "Script paused", also it says "Exit', and also Wine command prompt says something strange about "LockWindowUpdate", don't imagine it I'll post the screenshots so you can see it for yourselves. Also --and this is weird-- the virus apparently is trying to call a Windows process named csrcs.exe!! Again, I'll post the screenshots.

If this is a virus, then it's like a fish out of the water on my Ubuntu, it's probably trying to do something but it can't find its way around, it's kinda funny, but Im worried because I also dual-boot Windows XP, I'm having a hard time trying to remember the name KHY, it's a very weird acronym, it's the acronym of a disease, according to what I googled, i'm sure it's a virus!!! Anyway it's HARD to remember!!!

what can I do about this? How can I see the "script"? can Ubuntu kick its ***?how can I clean my Windows?

View 9 Replies View Related

Slackware :: Make K3b Write Files With Correct Mask

Jan 14, 2010

I've blown a couple of DVDs trying to burn them with correct file masks (directories and files are read-only). There doesn't seem to be any documentation for K3b (building the index doesn't do squat and the help says "The file or folder help:/k3b/index.html does not exist"). I can't seem to figure out a setting that simply copies everything the "way it is."

View 7 Replies View Related

Ubuntu :: Cleanup Script Which Will Clean All Trash Folders

Dec 20, 2010

its basically a cleanup script which will clean all my trash folders..

n run
apt-get clean
apt-get autoclean
apt-get autoremove..

how can i do so?

View 9 Replies View Related

Ubuntu Security :: Configure The Share And Folder So That The Win7 Client Can Create Files And/or Folders In The Share?

Jan 15, 2010

I've just installed Ubuntu 9.10 and Samba 3.4. I've shared a folder and have accessed the share from a Windows 7 client. However, I've struggled to configure the share and folder so that the Win7 client can create files and/or folders in the share. Kept getting Permission Denied errors. Finally, (using Webmin) I set the permissions on the file folder so that "Other" had write access. I don't understand why this was necessary (and how unsecure this is). I already had the write access checkbox ticked for "User" but it wasn't enough.

View 1 Replies View Related

Ubuntu Security :: Clean Windows Partition With ClamAV

May 30, 2011

My windows partition is infected and I recall that it is supposed to be possible from the linux partition with ClamAV. Now I'm running Fedora12 but this forum is much more active and I suppose that doesn't make a big difference. I tried to find something on google but most procedures seem to involve a Live CD but it would be more convenient for me to just do it from my linux distro running. Is there anything I have to be aware of or is it literally just scanning the windows partition with ClamAV?

View 5 Replies View Related

Ubuntu Networking :: Samba Folders Dissappearing?

Jan 3, 2010

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?

View 7 Replies View Related

Ubuntu :: Can't Rename Folders Via Samba In Karmic?

Feb 17, 2010

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)

[code]....

View 4 Replies View Related

Ubuntu :: No Access To Some Folders On Samba Shares

Sep 17, 2010

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.

View 5 Replies View Related

Ubuntu :: Difficulties Sharing Folders Using Samba?

Feb 21, 2011

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.

View 2 Replies View Related

Debian :: Cant Clean Any Files Or Cut Files To Another Place

Jul 28, 2010

I use of lenny beside Windows and have some ntfs partition and one fat32. I mounted them in start up but in my fat drive I cant clean any files or cut files to another place.

View 2 Replies View Related

Ubuntu :: Samba Cannot Access Windows Shared Folders?

Jan 2, 2010

spent so much time trying to get Samaba working, but with no luckHere is my smb.confQuote:

[global]
realm =
netbios name = rlx-laptop

[code]....

View 9 Replies View Related

Ubuntu :: Samba Share In 9.10 - Few Folders Access By 3 Users

Apr 28, 2010

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 .........

View 5 Replies View Related

Ubuntu :: Samba In Virtualbox - Sharing Folders With Win7?

Aug 11, 2010

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:

Code:

[folder1]
path = /data/mp3
read only = yes
guest ok = yes

[code]....

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?

View 1 Replies View Related

Ubuntu Networking :: Samba Doesn't Share Folders In 10.04?

Feb 18, 2011

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.

View 9 Replies View Related

Ubuntu Networking :: Sharing Home Folders (samba)?

May 29, 2011

sharing the home directory of my mediacenter pc.I run xubuntu 10.04 on this machine, so I had to write my own smb.conf file:

[global]
workgroup = ReteDomestica
netbios name = MEDIASERVER[code]....

On my desktop PC (ubuntu 10.10) I can see the home folder of the mediacenter, but I cannot open it (unable to mount windows share) Where's the mistake?

View 1 Replies View Related

General :: Samba Folders Unwritable?

May 16, 2011

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

[code]....

View 53 Replies View Related

Ubuntu :: Sync Folders To A Samba Storage Router (rsync)

Nov 4, 2010

how do I go about using rsync or grsync to sync folders to a samba share in my storage router? the samba share ip is smb://192.168.0.1/usb1-c/ tried using grsync but it says cant find smb!

View 9 Replies View Related

Ubuntu Servers :: Samba Users Able To Browse Folders With No Permission

Feb 11, 2011

I've set up smbd 3.4.7 on 10.04x64 LTS server. I've set up a couple shares and I'm having problems blocking access to certain directories using native file permissions. There is one directory that has folders for each sales rep to store their current list of quoted clients, I only want sales people to be able to browse the directories owned by themselves. Everything seems to be set up correctly in terms of user groups and permissions on the filesystem.

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.

View 3 Replies View Related

Ubuntu Networking :: Recursive Shared Media Folders (samba)?

Mar 20, 2011

I currently have samba set up to share to XBMC. One of my shares contains many folders. But the permissions aren't given to access those folder only the container folder.

I can browse the folders recursively with a windows Laptop

How do i enable recursive permissions?

View 9 Replies View Related

Ubuntu Servers :: Maintaining Hidden Windows Folders With Samba

Sep 1, 2011

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:

[global]
log file = /var/log/samba/log.%m
passwd chat = *Entersnews*spassword:* %n
*Retypesnews*spassword:* %n
*passwordsupdatedssuccessfully* .
map hidden = yes .....

[media]
comment = Shared files
path = /usr/media

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved