LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
LinkBack Search this Thread
Old 05-04-2006, 11:41 PM   #1
dfwcomputer
Member
 
Registered: Mar 2006
Posts: 47

Rep: Reputation: 15
/mnt/server | is this alright for file server directory | Resolved


Basically i want a directory setup in mandriva 2006 so that it holds all my programs i have acuired over the years.(and there's a lot ).This directory will have to be accessible by windows xp sp2 and i would like to be able to create new folders and stuff on this directory from the xp machine.This mainly because i will be downloading on the windows machine and want to be able to save to this directory.Is the above setup alright (e.g. /mnt/server) and is there anything else that needs to be setup.The directory is already accessable via xp but creating folders and extracting archives won't work.

Or should i create this directory somewhere else.

Thanks
Dean

Last edited by dfwcomputer; 05-08-2006 at 05:52 PM. Reason: Resolved
 
Old 05-05-2006, 01:25 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
It'll need to be on a FAT32 style partition if you want both OS's to safely read+write it.
 
Old 05-05-2006, 04:31 AM   #3
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 332

Rep: Reputation: 39
Assuming that this is a dual boot system mandriva / windows? or is Windows accessing it through the network?..

In the first assumption, chrism01 is right. make sure that you mount the partition with the right user / group id for the regular user(s) to be able to correctly access the partition.

In the latter, you need to create a samba share to provide access. With 'force user/group' you can force uid / gid when writing to the partition.
 
Old 05-06-2006, 03:08 AM   #4
dfwcomputer
Member
 
Registered: Mar 2006
Posts: 47

Original Poster
Rep: Reputation: 15
thanks for the replys.

so basically it sounds as if it is already settup right i just have trouble creating folders.So basically i just have to create the partition in fat32 format.

to explain a bit better! (i am not the brightest tool in the shed. )
  1. xp machine (on the the internet)
  2. mandriva 2006 machine (internet through xp machine)
  3. reserved
  4. reserved
  5. reserved

The bottom 3 are reserved for the 3 other pc's i wish i had.

The mandriva machine has 2 HDD's. The first HDD is partitioned as;
100MB /Boot
1GB swap
9.9GB /
30GB /mnt/server

The second HDD has;

20GB /mnt/backup
20GB /mnt/data

therefore all i need to do is format the /mnt/server partition as FAT32.Right?

also is this the best way to have my partition's layed out?The reason i put the 30GB partition on the end of the first HDD is the second HDD recently started to have trouble with smart and errors in general about the disk,so thought it was safer data wise to keep it on a known good HDD.

Thanks again.
Dean
 
Old 05-06-2006, 10:27 AM   #5
nabeelmoidu
Member
 
Registered: Jul 2005
Location: Bangalore
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
I believe chrism01 suggested FAT32 to you believing its a single machine with dual boot where you accessed internet with windows and also used linux.
In this case the better way would be to go ahead with the 30 GB partition with the normal ext3 fs .You can mount it as /mnt/server or anything else.That doesn't matter much.
Then you will have to configure /mnt/server as a samba share in your mandrake machine with read write access to the user who will be accessing it from the windows machine.Since read already works for you I guess Samba is already installed in the mandrake machine probably with read permissions only.Check out your /etc/samba/smb.conf file and if possible post it here.
You can then mount the samba share in the XP machine like you normally map a network drive in windows.
 
Old 05-07-2006, 07:57 PM   #6
dfwcomputer
Member
 
Registered: Mar 2006
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
I believe chrism01 suggested FAT32 to you believing its a single machine with dual boot where you accessed internet with windows and also used linux.
The windows machine is on dial up and the linux machine accesses internet via the xp machine. (internet connection sharing)

The other thing is the workgroup of the xp manchine is LANC1 and the linux machine is MDKGROUP.If i set the linux machine to LANC1 neither computer can talk to each other, Is this right or is there something wrong as normally in a windows based setup both machines would use the same workgroup.

But anyway here is the smb.conf file:


# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2006/05/08 09:13:14

[global]
dos charset = 850
unix charset = ISO8859-1
workgroup = MDKGROUP
netbios name = LOCALHOST
server string = Samba Server %v
security = SHARE
map to guest = Bad User
guest account =
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap cache time = 60
printcap name = cups
dns proxy = No
ldap ssl = no
create mask = 0777
directory mask = 0777

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No

[print$]
path = /var/lib/samba/printers
write list = @adm, root
inherit permissions = Yes
guest ok = Yes

[pdf-gen]
comment = PDF Generator (only valid users)
path = /var/tmp
printable = Yes
printing = bsd
print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
lpq command = /bin/true
lprm command = lprm -P'%p' %j

[server]
comment = Server
path = /mnt/server/
read only = no
guest ok = yes
browseable = Yes

[downloads]
comment = Downloads
path = /mnt/downloads
read only = No
guest ok = Yes
browseable = Yes


Thanks again,
Dean
 
Old 05-08-2006, 02:26 AM   #7
nabeelmoidu
Member
 
Registered: Jul 2005
Location: Bangalore
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
Quote:
Originally Posted by dfwcomputer

[server]
comment = Server
path = /mnt/server/
read only = no
guest ok = yes
browseable = Yes

[downloads]
comment = Downloads
path = /mnt/downloads
read only = No
guest ok = Yes
browseable = Yes
Try adding the line
writeable = yes
to each of these sub sections and restart samba
 
Old 05-08-2006, 05:49 PM   #8
dfwcomputer
Member
 
Registered: Mar 2006
Posts: 47

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Try adding the line
writeable = yes
to each of these sub sections and restart samba
worked a charm

thanks, much appreciated
Dean
 
Old 05-12-2006, 01:46 AM   #9
dfwcomputer
Member
 
Registered: Mar 2006
Posts: 47

Original Poster
Rep: Reputation: 15
No Transfer From XP 2 Linux | permissions revert back to 755

Ok everything was working great.........was working great

as /mnt/server is mapped in my windows xp machine as H: it has always allowed me to copy files into that directory.and all of a sudden it just won't let me.

here is my fstab and smb.conf file.

fstab file


# This file is edited by fstab-sync - see 'man fstab-sync' for details

# device name mount point fs-type options dump-freq pass-num
/dev/hda3 / ext3 defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0

# my removable media
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto, 0 0


/dev/hda2 swap swap defaults 0 0

# Other
/dev/hda5 /mnt/server vfat auto,rw,user 0 0
/dev/hdb1 /mnt/storage vfat umask=000 0 0
/dev/hdb5 /mnt/files ext3 defaults 1 2
/dev/hdb6 /mnt/other ext3 defaults 1 2


smb.conf file


# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2006/05/12 14:20:06

[global]
dos charset = 850
unix charset = ISO8859-1
workgroup = MDKGROUP
netbios name = LOCALHOST
server string = Samba Server %v
security = share
encrypt passwords = No
log file = /var/log/samba/log.%m
max log size = 50
server signing = auto
preferred master = No
domain master = No
ldap ssl = no
hosts allow = 192.168.3.1/255.255.255.0

[printers]
comment = All Printers
path = /var/spool/samba/
read only = No
create mask = 0700
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No

[print$]
path = /var/lib/samba/printers/
write list = @adm, root
read only = No
inherit permissions = Yes
guest ok = Yes

[pdf-gen]
comment = PDF Generator (only valid users)
path = /var/tmp/
read only = No
guest ok = Yes
printable = Yes
printing = bsd
print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
lpq command = /bin/true
lprm command = lprm -P'%p' %j
[server]
browseable = yes
public = yes
create mask = 777
directory mask = 777
comment = server share
path = /mnt/server
writable = yes

can anyone see any major errors.when you drag and drop a file from xp into the mapped directory in my computer it says "cannot find the specified file" this doesn't make sense and it does not matter what file you choose to copy to that location.another thing is you can drag files from the directory onto the desktop no worries at all.

also on the linux (mandriva 2006) machine if you look at thje properties of /mnt/server it is 755.(everything is checked except for user and group "write") if you then select both write check boxes it automatically un-checks them again.

Any ideas would be greatly appreciated.

Thanks
Dean
 
Old 05-12-2006, 03:08 AM   #10
dfwcomputer
Member
 
Registered: Mar 2006
Posts: 47

Original Poster
Rep: Reputation: 15
just tried;

chmod -R o+rw /mnt/server

still won't change the file permissions.is that the right command

Thanks
 
Old 05-14-2006, 02:09 AM   #11
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 332

Rep: Reputation: 39
Hmm..

My guess is that there is something else going wrong than permissions...

Have you checked errors in /var/log/messages, /var/log/secure, or in any of the files in /var/log/samba ?

Could SELinux be active? try 'echo 0 > /selinux/enforce'. Perhaps SELinux is prohibiting access?
 
Old 05-14-2006, 09:32 PM   #12
dfwcomputer
Member
 
Registered: Mar 2006
Posts: 47

Original Poster
Rep: Reputation: 15
SELinux was off but i re-installed and made a backup straight away this time.
 
Old 06-27-2006, 04:39 PM   #13
mirabile dictu
LQ Newbie
 
Registered: Mar 2005
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
I'm still having the "could not find the specified file" problem. I do not have that SELinux thing, I've put it on user level security, made the folder writable (from inside smb.conf) changed the permissions to 777, still no luck. Any ideas?
 
  


Reply

Tags
directory, howto, mandriva, server, share, smbconf, windows, xp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
Samba with ADS as a home directory file server? xwoz Linux - Software 0 08-16-2004 07:50 AM
cannot create directory `/mnt/win_d/MP3': Read-only file system PapaJac Mandriva 11 03-04-2004 05:25 AM
cannot create directory `/mnt/win_d/MP3': Read-only file system PapaJac Mandriva 0 03-02-2004 04:09 PM
Starting YP Map server: execvp: no such file or directory kofi Linux - Networking 3 10-07-2003 09:27 PM


All times are GMT -5. The time now is 08:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration