Ubuntu :: Samba Configuration - Unable To Write New Content
Sep 27, 2010
I have ubuntu server 10.4 installed on an Intel SS4200-E, which I have configured without any RAID. This machine acts as a media server to another PC. The other PC runs Windows 7 Ultimate. I have 3 1TB hard disks connected to it, and the file system on all the 3 are NTFS. I have mounted the hard disks as ntfs. I have made the folders on all the 3 hard disks shareable. I have configured Samba to make the folders on the hard disks "visible".
The ubuntu machine is in a headless configuration (it doesn't have any VGA card where can connect a monitor). I can configured SSH on it, so I can use putty from the Windows machine to logon to the ubuntu machine, but it is text based only. I am able to see all the 3 disks from the Windows machine. I am able to read/write into 2 of the disks. I am able to read, copy and delete from the 3rd disk, but not write new content to it.
Following is the snippet from /etc/fstab:
Code:
/dev/sda3 /media/Media1 ntfs-3g defaults,locale=en_US.utf8 0 0
/dev/sdb1 /media/Media2 ntfs-3g defaults,locale=en_US.utf8 0 0
/dev/sdc1 /media/Media3 ntfs-3g defaults,locale=en_US.utf8 0 0
Following are the lines which I have added to the end of /etc/samba/smb.conf:
Code:
[Media1]
path = /media/Media1
writable = yes
guest ok = yes
[code]....
View 9 Replies
ADVERTISEMENT
Jun 29, 2010
I can map the share just fine, but cannot write, regardless of how open I make the permissions of the Samba share.
Share from testparm:
[student]
comment = Test share
path = /home/share/students
valid users = @students
admin users = DSSJCAdministrator
write list = @students
read only = No
create mask = 0770
force create mode = 0770
directory mask = 02770
force directory mode = 02770
directory security mask = 0775
guest ok = Yes
getfacl:
getfacl /home/share/students/
getfacl: Removing leading '/' from absolute path names
# file: home/share/students/
# owner: root
# group: students
user::rwx
group::rwx
group:students:rwx
mask::rwx
other::rwx
AD auth works fine with winbind, getent/wbinfo returns properly enumerated groups.
Unfortunately, the logs say:
[2010/06/29 11:17:32, 2] smbd/open.c:2447(open_directory)
open_directory: unable to create New folder. Error was NT_STATUS_ACCESS_DENIED
View 1 Replies
View Related
Aug 14, 2010
Hi,
I'm pulling my hair out trying to figure out what is wrong with my Samba share. I have set up a directory /samba to serve up some movies, music, etc, on an Ubuntu 10.04 Server box. For now, I have given that directory 777 permissions, along with the subfolders:
Code:
drwxrwxrwx 4 michal michal 4096 2010-06-22 18:02 Apps
drwxrwxrwx 3 michal michal 4096 2010-06-22 19:02 Music
drwxrwxrwx 3 michal michal 4096 2010-08-14 19:27 Pics
drwxrwxrwx 5 michal michal 4096 2010-06-22 19:48 Video
This is how my smb.conf file looks like for this particular share:
Code:
[share1]
comment = share1
browsable = yes
path = /samba
write list = michal
Furthermore, I went ahead and mapped the Samba user to my Linux user account in /etc/samba/smbusers:
Code:
michal = "michal"
When I try to login from a Windows machine using michal as the username, I can see the folders, but I am unable to create new files on the share. Considering that the file system permissions are liberal on the share directory, I have no clue as to why I'm still getting denied write permission.
Any ideas? Thanks!
View 1 Replies
View Related
Jun 13, 2010
How would i write a script which will add a following content to a file.File Before running script.
Code:
acpi = 1
apic = 1
builder = 'hvm'[code]....
View 3 Replies
View Related
Aug 5, 2010
I would like to know a how to write Perl script to catch all the content in between BEGIN: and END from input file could any body help?
View 9 Replies
View Related
Oct 30, 2010
How can I write to a file multiple times using fwrite without affecting the previous writes?The method shown below accepts a file name, buffer and offset. The method opens the file in reading/writing mode and writes the content of the buffer at offset.
View 1 Replies
View Related
May 9, 2011
I need to write a shell script which can ready content of the folder and place files on remote FTP server. I need to make sure that a file that is already placed on remote FTP server is not attempted second time. The file names will be something like Records-2011-05-09. The files will be generated by MySQL every hour.
View 7 Replies
View Related
Apr 27, 2010
I have configured a samba server where I have configured it for /mnt dir to be exported/shared. When I verify this share, I see mnt dir but I want the content inside the mnt to be visible or chroot into mnt directly.
View 6 Replies
View Related
Feb 26, 2016
I had directory inside www that is gone. I am not sure if I removed it my mistake somehow or there is something weird going on. How would I track down what happened to this directory?
View 2 Replies
View Related
Oct 1, 2010
For Ubuntu 10.04, I can configure the network by "Network Connections". This configuration is done by doing the following operation sequences(System->Preferences->Network Connections->wired->auto eth0). Then I can connet to and browse the internet. If I type the command "ifconfig", I can see the ip I configured for eth0. Part of the content is as blow:
Quote:
ifconfig
eth0
inet addr:192.168.28.31 Bcast:192.168.28.255 Mask:255.255.255.0
But in the "interfaces" file, there is no eth0 content. The whole content is simply as below:
Quote:
cat /etc/network/interfaces
auto lo
iface lo inet loopback
I think there should be other files that keep the eth0 configuration content.
View 1 Replies
View Related
Oct 31, 2010
For Ubuntu 10.04, I can configure the network by "Network Connections". This configuration is done by doing the following operation sequences(System->Preferences->Network Connections->wired->auto eth0). Then I can connect to and browse the internet. If I type the command "ifconfig", I can see the ip I configured for eth0. Part of the content is as blow:
[Code]...
I think there should be other files that keep the eth0 configuration content. What are they?
View 3 Replies
View Related
Apr 26, 2011
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:
setsebool -P samba_domain_controller on
Trying to connect to samba locally gives me this:
Code:
[tedward@hp-firegate ~]$ smbclient //192.168.0.1/storage -Utedafur
Password:
session setup failed: NT_STATUS_LOGON_FAILURE
[code]....
View 6 Replies
View Related
Apr 26, 2011
In December 2009 I switched my web-hosting package with 1and1 to their best VPS package. What a difference! At this time I knew absolutely NOTHING about Linux sys admin stuff. Now, I know a little more I now run 'several' VPS instances (all with 1and1). Back to the problem then... On all my boxes I run CentOS 5.5 (Linux 2.6.18-028stab070.4) with various different versions of Plesk (9.5.2 and 10.2.0) The VPS instances themselves are on Virtuozzo nodes. As you may know, Virtuozzo has a firewall GUI allowing modification of iptables. I only use this when I make a mistake and cannot SSH. My 'original' iptables: (the VZ chains are controlled by the Virtuozzo container)
Code:
Chain INPUT (policy DROP)
target prot opt source destination
VZ_INPUT all -- anywhere anywhere
Chain FORWARD (policy DROP)
[code]....
if this iptables chain limits the number of connections to 3 per second and 100 per second respectively, is this still secure or is there no point in having this rule? If the rule is a good one to have, then how can I allow http connections to bypass this chain/rule?
View 6 Replies
View Related
Mar 15, 2011
I have server with Debian and Apache installed. Webpage content located in /var/www folder. For failserver I have Windows server 2003, which runs Mysql service thats needed for library software. And on this machine theres Inetpub/wwwroot with library webcontent. Sofar its only accessible localy. How can make Apche webserver to take content from this local server machine and show it publicly.
View 14 Replies
View Related
Jan 14, 2010
Earlier when installing Karmic I requested assistance to enable me to listen & view BBC content in the United Kingdom. This involved me in loading :
mozilla-mplayer,
flashplugin-nonfree,
Ubuntu restricted extras
which worked a treat.
I decided to install Karmic on an old desktop system with the intent of using it as a backup system for my data. Having installed this as a fresh install I again followed the earlier advice only to find that when I attempted to connect to the BBC I was asked to load flash. This happened no matter which station I attempted to listen or view.
As far as I can see everything has been installed exactly as on my laptop and therefore should naturally work as before. The only difference is the laptop is using 64 bit and the desktop 32. Since I now see that the desktop is also capable of 64 bit processing should installing the 64 bit Karmic help?
Using sysinfo does not give too much information. I am told that the CPU is an AMD Athlon 64x2 Dual Core processor 4400+, 1000.000 MHz & L2 cache 512. The graphic card is shown as VGA Compatible Controller and the Sound Card as a multimedia Audio Controller.
I am at a loss why I am being asked for flash on the desktop and not being able to have the same benefits as I have on my laptop running the same OS.
View 9 Replies
View Related
Apr 5, 2010
I am *finally* getting around to rebuilding my file-sharing computer. I'll be sharing files with both Linux and Windoze machines. It's a home network, so there's nothing fancy needed. I know I have to tweak my smb.conf file until I'm satisfied with the features and security. I'm using SWAT and I'm starting with a bare-bones conf file. It's not secure but I can see the server and selected files/directories from my other Linux box.
My really dumb question is, do I have to reboot both the server and the client machines every time I change the SAMBA configuration? I thought I just had to stop and restart the SAMBA service in the SWAT software - but then the server disappears from my client. It looks like I need to reboot both machines for the client to see the server.
View 1 Replies
View Related
Nov 5, 2010
This is (I suspect) a Mac OS issue but they've given no help (or replies!) on Mac forums so I'll ask here.I've just got a Mac and I can connect to shares on my Ubuntu (10.04) server, read files and create directories but I cannot write. I get this error:"The operation cannot be completed because you do not have sufficient privileges for some of the items."I can connect from the command line with smbclinet and write fine. I have tried several different users on both the Mac (cannot write) and Ubuntu clients (can write).Is this something to do with the ._filename files that finder creates? Or is there something wrong with the way I've set up my server? This is the first time I've used it with a Mac client.
View 9 Replies
View Related
Jan 14, 2010
From a Win 7 client, I can copy/create/delete any files on any share on the Ubuntu Samba server so long that is part of my nix file system which is all ext4.This box also has and NTFS partition on it primarily for storage. I can copy/create/delete anything on this partition form the same Win 7 client with the exception of Quickbook save files.I have scoured the web looking for anything close to this but have yet to find anything that looks similar. Not lloking for a direct answer but if there is anyone else that has issues copying specific types of files to a Samba NTFS partition.
View 3 Replies
View Related
Aug 10, 2010
I have this samba share for ghosting images to (backing up computers at work) and I can read the ghost images just fine from the share, but I am unable to write to the share. From any windows environment I have tried, I get a disk is full error. I have 200GB+ free space, so this is not the actual issue. I believe there is a write permission somewhere that I am overlooking. My setup basically lets me log in under the username samba from a client machine.
Here is my smb.conf file:
Code:
#======================= Global Settings =======================
[global]
workgroup = discount.local
server string = %h server (Samba, Ubuntu)
[code]....
I've tried chown on /media/Images to make it owned by samba, but it just reverts once I remount the partition. Either that or my eyes are playing tricks on me.
View 6 Replies
View Related
Oct 26, 2010
Has anyone written a GUI for SAMBA?
View 1 Replies
View Related
Jun 11, 2010
I have a Samba Share which is mounted on various linux systems throughout the network. Whenever any of my user access those files using vim, Gedit it works fine and get perfect permissions to read/write those files. but whenever they try to open with any php IDE (quanta plus, geany, eclipse-pdt) they get error while saving those files. I dont think it is a permission or samba issue because we are able to edit/save those files using normal editors..
View 8 Replies
View Related
May 7, 2011
My linux machine is connected to the outside internet, and I have a minecraft server running on an internal machine (192.168.1.201). Right now, I am forwarding port 80 on the linux machine to 192.168.1.30, which is working.
iptables -t nat -I PREROUTING -i eth0 -d 192.168.1.30 -j DNAT --to-destination 192.168.1.201
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to 192.168.1.201
______________________________
I want to filter out the GET/POST requests and forward them to port 8080. I can't seem to get that working.
I've tried this:
iptables -A INPUT -d 192.168.1.30 -p tcp --dport 80 -m string --algo bm --string 'GET' -j REDIRECT --to-ports 8080
View 1 Replies
View Related
Mar 23, 2010
i have setup a samba server and created samba shares on it, i have configured the samba server to authenticates users from a windows server 2003 DC,
i have 2 shares call IT and MYSHARE, I want to give read and write permissions to sevaral users to those two shares and read only permisson to all the other users.
i tried editing the smb.conf file with the following settings , but no one can write or modify the files in the shares including the users specified in the
write list = cweerasinghe,njayarathna.
[IT]
writeable = Yes
browseable = yes
public = no
comment = IT share
[Code]....
how can i give access to the write list = cweerasinghe,njayarathna users to
read, write and modify the files in the shares ??
View 4 Replies
View Related
Sep 10, 2010
I have been having problems with Samba sharing from my Ubuntu-Server to all of my Windows 7 machines. All of the machines are able to access the samba shares however when i try to write to these shares i get a "Access Denied" error. This only happens under windows 7, my Ubuntu laptop easily writes to these shares. PS My permissions are read/write to all
View 1 Replies
View Related
Nov 22, 2010
Not sure if this is the correct forum for this but I run ubuntu 10.04 server in virtualbox, and have samba running. I can see the files and read them in win7, but I want write access aswell!
I need to do this in terminal only, and Im not that well versed in Linux or the terminal. Anyways here is my smb.conf:
[global]
security = share
workgroup = myworkgroupname
load printers = no
[Code]...
Since "read only = no" I think i should have write permissions... and since I can read the files Im guessing the smb.conf is the problem?
View 3 Replies
View Related
Aug 27, 2011
I have a Natty headless server that I would like to set up shared directories and grant specific users write permissions. I use a Windows 2008 R2 machine with Active Directory for authentication and have created a group GroupWithWriteAccess which I want to have write access to the shared directory. I want all other users to have read only access. I have edited my smb.conf file with the following
Code:
[TV]
path = /media/share/Media/TV
writeable = yes
write list = primaryuser @GroupWithWriteAccess
create mode = 0660
directory mode = 0770
The machine is fully setup to work with Windows authentication and I can access shares from the ubuntu machine, it's just sharing local directories with the correct permissions that I can't work out. So far I can access the files from my other machine, but I do not have write access even though I am logged on as a user who is a member of GroupWithWriteAccess.
View 1 Replies
View Related
Jan 29, 2011
I can map / plan to read but not write.I also chmod 755 / plans done.Does anyone have a solution
[global]
workgroup = MYNETWORK
netbios name = LINUX
log file = /var/log/samba/log.%m
security = share
;
[homes]
code....
View 8 Replies
View Related
Jul 25, 2011
I just have installed Fedora 15 to use it for multimedia server. I have installed also samba. Now I'm trying to access it from another PC (Windows 7) and I have no write access.
Code:
[root@echo mnt]# ls -l
total 12
drwxr-xr-x. 2 root root 4096 Jan 1 2006 boot
[Code]....
i just read whole internet (i have spend over 6h for reading and testing a lot of options and nothing...)
View 9 Replies
View Related
Sep 15, 2011
Using SuSE 11./4 on two machines. Successfully set up a server to share a folder. The client is able to read files from the folder, but not write to them.the client perspective, the shared folder permissions are read and write if owner, read only for all otherHowever, the server shared folder has been set up for sharing, and the permissions are set for read and write to all.
One more thing. When the client goes into the samba share, it sees the workgroup. Clicking into that, it sees the name of the server computer. Clicking into that,it sees two folders: "profiles" and "users". Clicking into "users" goes into the shared folder. I tried setting the permissions from the client side on the "users" folder using root privileges to allow reading and writing without any success
View 6 Replies
View Related
May 5, 2010
I have been trouble shoot for whole day. I still cant figure out where is my error on write access deny for backup directory on windows SP3. It can read data on explore users by \10.1.23.124ackup code...
View 10 Replies
View Related