Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
There is less than 12 hours left to vote in the 2015 LinuxQuestions.org Members Choice Awards. Click here to go to the polls. Vote now and make sure your voice is heard!
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
In Samba, without having the right permisions to a shared folder, I will get the NT_STATUS_BAD_NETWORK_NAME error; Easily fixed with chmod 777 (or +r or something similar) to the folder. But, I would like to share a folder on my NTFS drive. There is no way to set permissions for this folder, and without doing so, I am stuck without access. chmod -R 777 /(folder name) would work great, but as stated i can not modify permissions. Is there a way to work samba around this?
Im sorry, I realize this is somewhat of a double-post, but my old thread was extremely ambigous and badly worded, not to mention written at a point where samba was not even running
No, I don't have write support on my kernel, but I wont be using this either. All I want to do is play MP3 files on this linux box on my downstairs XP machine that has ~1gb hd space, these files being on the NTFS partition of the linux box. They only need read-only access, but samba wont give me permission to even view them! Ugh.... Im so lost
Are you saying that for samba to let me in I have to recompile my kernel with NTFS write support? Hmmm wheres that config file.. I think I still have the kernel saved.....
so it would be mount -t smbfs -o umask=777 //localhost/ntfs-c/ /home/
Or something? I cant get anything to work, and my shares are all screwed up now, and Lisa stopped working (giving the erno : 98 port in use error) and.... To format and start clean or not to format....
Lisa is still screwy but I restarted samba and stuff and now it's OK again. I just shared everything for testing purposes (didnt chmod it all ) and now doing smb://192.168.1.100/root/ I can view every file and folder pretty much, EXCEPT for the /ntfs-c/ folder! It asks for a username and password: surely this is not my windows logon, is it? I know that the ntfs filesystem is supposed to be secure like that (or something)
-you have mounted the ntfs partition so it mounts at every boot, to the folder /ntfs-c for exemple.
- write permissions for ntfs from linux is a myth, unless you regard that you can actually write to ntfs as long as you don't change the file size!!!! duh.
- you have created a samba share that looks somewhat like this
comment = mp3
path = /ntfs-c/mp3
writeable = no
browsable = yes
public = yes
- you must have done this.
*set a password x 2 *
cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
*do this only once, preferably after you have created all the samba users you need*
*enter the same password x2 as you will use to log into the windows machine*
service smb restart
Login to the windows machine as john. and you should be able to access the mp3 share, without any login screens.
*if the mp3 file are mounted to a folder that is in another users /home/user folder oth than /home/john you may have access problems. So usually mount stuff like this /mp3 /film so alla samba usera can access them. Sharing users home directories to other user's is a hassel.
*If you still can't read/access the share check the file permisions and do a chmod -R 755 /ntfs-c as root.
Hope this helps.
Last edited by nordickiwi; 10-06-2004 at 08:54 AM.
Ok, maybe im just pathetic, but im still having problems. I chmod-ed all the files to 755. Then I did:
useradd basement$ (name of machine)
smbpasswd -a -m basement$
(Type new SMB password etc.........
Ok, so when I try to open the folder (which now shows up, hurray!) on my XP machine, It says it can not be found or is inaccesible. Maybe my current SMB conf-file will shed some light. (i think something with my path is screwy, although it works in konsole and testparm says its OK...)
I also tried logging the error, and it is : /ntfs-c/Documents\and\ Settings/All\ Users/Documents/Music/'
does not exist or is not a directory, when connecting to [Mp3]
Getting around this for now, I did get using simply "/ntfs-c" as the path. I can logon internally atleast with that path, but my XP machine is still struggling. How exaclty do I log on? I added the user as that machine (basement$), but isnt there more to it? Or am I going about that all wrong? I mean, even internally as root I have to provide a password, I dont understand what to do through the other comp. Hell, even if I went 0 security with no users and just the nobody account functioning freely I would be happy
The XP machine is named basement, with 1 user Administrator and password admin.
The XP machine can see the samba share fine, and it shows the directories, but the windows machine is still not logging in correctly. I just setup the 'client for windows networks' client, but to no avail. Is there a specific logon script I need to create for the machine? Does the capital in 'Administrator' yield any adverse effects? Thanks
ok, well done so far your nearly there,
two things come to mind.
-You MUST log onto the XP machine with the same account that you created earlier!! in your case the user basement$. Of course you must firstly create this user on your XP machine with the same Password you used when you did a smbpasswd, becuase when you click on a samba share from windows the samba server checks first the windows account & password that you are currently log in with, if it is the same as a varified samba user then you will be granted access, otherwise you will recieve a login in screen (hope that made sense).
-You share, it seems it would be easier to mount the whole windows partition and share the whole thing as well...then you don't have to worry a linux/samba having to figure out stupid "spaces" i file names. Try adding this to the bottom of your /etc/fstab file, (adjust the hda1 if you have windows on another partition)
comment = mp3
path = /ntfs-c
writeable = no
browseable = yes
public = yes
- set wins support to No, as I'm sure your not using a wins server at home.........not many companies use a wins server.
wins support = No
-Reboot you samba Machine, (to remount the /ntfs-c partition correctly) start the samba server again if not allready set to start at boot.
-Logon to your XP machine with basement$ user, hopefully the $ sign hasn't caused any issues (otherwise go throug the whole useradd stuff again with user administrator.)
access you Mp3 share and browse your way to you music and enjoy, maybe create a simple link to the music folder for easy access.
BUT: NTFS mounted directory absolutely refuses to let me share it; it is a read only drive, and its read-write access cannot be altered nor made available to anyone but the owner, from what I can tell. Is there any possible way to get this to work?!?!?!? PLEASE! I am so close, I can read and write to all the other folders, do anything I want, but I cannot share the NTFS file-system folder.
If its unclear what I mean, I have the partition mounted to /ntfs-c, and, upon trying to access it from the other computer, the log file reads "(chdir /ntfs-c) failed" , because I do not have nor can set/change permissions. This is horribly redundant, but I have everything set as it needs to be, and am running on version 3.0.5.
Might I be able to change some properties of the mounted drive by the script mounting it on boot, so that I am able to share it? Or should I just scrap the idea and make a FAT32 partition to do my dirty work.