LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2001, 08:32 AM   #1
Nyc0n
Member
 
Registered: Aug 2001
Location: Brandon, FL
Distribution: Slackware All The Way Baby!
Posts: 31

Rep: Reputation: 15
Wink Writing to Linux Drives From Windows


I run my own file server on my network, i have a 5, 9gig scsi raid 5, a 2, 30gig ide 0 raid, and one 60gig ide drive. I run slackware 8.0 and ive recompiled the kernel to support everything i need. My Problem is......I have samba set up to my windows boxes can access my file server, i can get files off of there fine.....but i cant write to the linux drives. All the config files (smb.conf) say that its set up for RW. So i dont know why i cant write to the drive. I use it to back up files and things ive downloaded. I have to do crazy stuff to do simple tasks, for example to get files on to my file server, i have to copy it to my user directory on my web server, the only dir i can write to in windows, then copy it over to my file server from my web server. its complicated, and its a pain to do it that way everytime. Can any one help? i download alot of stuff in windows, and both my servers are linux slackware 8, it would just be more convient if i could transfer the files strait from my win box to my linux box. Please Help...

Also, i have run the registry tweak to enable the plain text passwords on my win boxes, so they could talk to my linux boxes.....

thanks

Nyc0n
 
Old 08-15-2001, 11:08 AM   #2
alpha-wolf
LQ Newbie
 
Registered: Aug 2001
Location: Germany
Distribution: SuSE
Posts: 21

Rep: Reputation: 15
Hi,
for a qualified answer you should post the smb.conf. To help yourself increase the loglevel (directive: log level =2 .. or more) and read the logs (/var/log/log.smb and /var/log/log.nmb )

alpha-wolf
 
Old 08-16-2001, 08:43 AM   #3
hazza96
Member
 
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146

Rep: Reputation: 15
Three things to check:

1. Check the 'create mask' in your smb.conf, each share has it's own.
2. Check the 'directory mask' in your smb.conf, each share has it's own.
3. Check the unix rights of the directory. If the rights are r-x then it doesn't matter what the samba rights are you won't be able to save anything to the directory but you can change into it.
 
Old 08-18-2001, 01:07 PM   #4
Nyc0n
Member
 
Registered: Aug 2001
Location: Brandon, FL
Distribution: Slackware All The Way Baby!
Posts: 31

Original Poster
Rep: Reputation: 15
I really dont know how to change the file permissions, i know i can do a chmod 777 whateverfile to make it so it can be accessed my anyone. but i dont think it would be a good idea to do that for the entire drive. and i also have in my smb.conf file read-only = no, public = yes and writable = yes, i have the security = user, i dont care about secutity within my own local network. i want to be able to read and write to the drives freely, not just to one dir on the drive. windows asks me for a user and pass when i click on the machine in network neighborhood, but it wont except the root login, only my user login......is there anyway to maybe set up my user to have root priveldges all the time? like another root account or something.....i know its not a good idea, but i need to be able to write to these drives ANYWHERE from windows.....i love linux as my servers....i just have to make it work the way i want it to or its useless.....

thanks again

Nyc0n
 
Old 08-19-2001, 05:58 AM   #5
hazza96
Member
 
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146

Rep: Reputation: 15
If you want to bypass the linux file security go to here -> www.micro$oft.com. I am sure they have something available for you.

I am not 100% sure but I don't think you can login to samba as root (same as telnet).

Actually I just remembered the /etc/smbuser file, try logging in as admin with your root password.
 
Old 08-20-2001, 03:58 PM   #6
loganwva
Member
 
Registered: Jul 2001
Location: West Virginia
Distribution: SuSE 9.1
Posts: 117

Rep: Reputation: 15
I solved this problem on my system by going into Shares/Advanced View section of Samba and adding the line "admin user = root" to the (admin users) field and the line "write user = root" to the (write list) field. This must be done for each share. You can get more info on this by clicking on the help link next to the "admin users" and "write list" from the advanced view of Shares.

loganwva
 
Old 08-20-2001, 04:37 PM   #7
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Make all users root... that sounds like a familiar approach which is more of a problem than a solution.

Your best bet is to change the *NIX permissions on the directories in question. The /home/username dirs should be owned by username, usually in group users.

You can supplement the effect by using the directory masks in smb.conf explicitly for each share.
 
Old 08-20-2001, 05:06 PM   #8
Nyc0n
Member
 
Registered: Aug 2001
Location: Brandon, FL
Distribution: Slackware All The Way Baby!
Posts: 31

Original Poster
Rep: Reputation: 15
I know that chomd 777 makes everything RW but how do i get it back to not everything is RW? i ran chmod 777 on my entire drive.....oops....hey i was desperate and trying stuff.....
 
Old 08-20-2001, 07:50 PM   #9
loganwva
Member
 
Registered: Jul 2001
Location: West Virginia
Distribution: SuSE 9.1
Posts: 117

Rep: Reputation: 15
You do not make all users root, root was only used as as example. The user root could be subsitituted with any user, it could be user john or user tom, but each user has to be added to the field that your want to give these permissions. Such as "admin user = tom" in the (admin user) field and "write user = tom" in the (write list) field.

I did not have write permissions until I did this. Now I can wirte to both systems from the network.

loganwva
 
Old 08-20-2001, 08:37 PM   #10
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Quote:
Originally posted by loganwva
You do not make all users root, root was only used as as example. The user root could be subsitituted with any user, it could be user john or user tom, but each user has to be added to the field that your want to give these permissions. Such as "admin user = tom" in the (admin user) field and "write user = tom" in the (write list) field.

I did not have write permissions until I did this. Now I can wirte to both systems from the network.

loganwva
My bad. I got your post confused with the '777' one.

As for the '777' guy... you might check and see if you have something like the SuSE distros - a script to set permissions based upon the contents of /etc/permissions.easy|secure|paranoid. I do it through YaST or via the suse harden script.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing Scripts for Linux in Windows AxXium Linux - General 4 07-18-2005 05:01 PM
writing to linux from windows Jan Tanjo Linux - Networking 4 03-19-2005 11:38 AM
Writing to Windows Drives in Knoppix jmcLNX Linux - Hardware 1 04-20-2004 01:06 PM
re: writing html on linux and windows ergo_sum Linux - Software 10 11-08-2003 01:44 PM
Partitioning drives to split Linux and windows with windows already on computer. linuxnoub Linux - Hardware 5 10-16-2003 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration