LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /mnt/server | is this alright for file server directory (https://www.linuxquestions.org/questions/linux-newbie-8/mnt-server-%7C-is-this-alright-for-file-server-directory-441764/)

dfwcomputer 05-04-2006 11:41 PM

/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

chrism01 05-05-2006 01:25 AM

It'll need to be on a FAT32 style partition if you want both OS's to safely read+write it.

rhoekstra 05-05-2006 04:31 AM

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.

dfwcomputer 05-06-2006 03:08 AM

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.:confused: )
  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.:D

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

nabeelmoidu 05-06-2006 10:27 AM

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.

dfwcomputer 05-07-2006 07:57 PM

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

nabeelmoidu 05-08-2006 02:26 AM

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

dfwcomputer 05-08-2006 05:49 PM

Quote:

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

thanks, much appreciated
Dean

dfwcomputer 05-12-2006 01:46 AM

No Transfer From XP 2 Linux | permissions revert back to 755
 
Ok everything was working great.........was working great:o

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

dfwcomputer 05-12-2006 03:08 AM

just tried;

chmod -R o+rw /mnt/server

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

Thanks

rhoekstra 05-14-2006 02:09 AM

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?

dfwcomputer 05-14-2006 09:32 PM

SELinux was off but i re-installed and made a backup straight away this time.

mirabile dictu 06-27-2006 04:39 PM

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?


All times are GMT -5. The time now is 09:43 PM.