Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-15-2001, 08:32 AM
|
#1
|
Member
Registered: Aug 2001
Location: Brandon, FL
Distribution: Slackware All The Way Baby!
Posts: 31
Rep:
|
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
|
|
|
08-15-2001, 11:08 AM
|
#2
|
LQ Newbie
Registered: Aug 2001
Location: Germany
Distribution: SuSE
Posts: 21
Rep:
|
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
|
|
|
08-16-2001, 08:43 AM
|
#3
|
Member
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146
Rep:
|
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.
|
|
|
08-18-2001, 01:07 PM
|
#4
|
Member
Registered: Aug 2001
Location: Brandon, FL
Distribution: Slackware All The Way Baby!
Posts: 31
Original Poster
Rep:
|
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
|
|
|
08-19-2001, 05:58 AM
|
#5
|
Member
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146
Rep:
|
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.
|
|
|
08-20-2001, 03:58 PM
|
#6
|
Member
Registered: Jul 2001
Location: West Virginia
Distribution: SuSE 9.1
Posts: 117
Rep:
|
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
|
|
|
08-20-2001, 04:37 PM
|
#7
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
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.
|
|
|
08-20-2001, 05:06 PM
|
#8
|
Member
Registered: Aug 2001
Location: Brandon, FL
Distribution: Slackware All The Way Baby!
Posts: 31
Original Poster
Rep:
|
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.....
|
|
|
08-20-2001, 07:50 PM
|
#9
|
Member
Registered: Jul 2001
Location: West Virginia
Distribution: SuSE 9.1
Posts: 117
Rep:
|
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
|
|
|
08-20-2001, 08:37 PM
|
#10
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|