![]() |
Linux/Samba permission from Windows
Have eventually got Ubuntu installed on old PC :)
I have installed Samba and having given permission to "shared docs" on C drive, (just test stuff in there) I can see this on the network via Ubuntu :cool: However, from Windows I can not gain access to my Linux PC. It asks me for name and password (yes, I know my password and the root/admin password, and I know my logon name) what path etc should I be using in the Windows name filed in password box that pops up, or, as I think, how do I give an easy/full permission in Linux (like I could in Windows) so I am not asked for password/id? I have just installed the basic Samba, but on looking in help got confused :dunce: It's been a long day, so be gentle :sleep: I also a couple of other hopefuly easy questions, but let's get this sorted first so I can create a batch file to transfer various files over to Linux PC. Windows I'm used to, Linux is a whole new game. Realistically I just want to back-up stuff to old PC. Thanks in advance, Cheers |
Re: Linux/Samba permission from Windows
You need to on the Linux command line type
smbpasswd -a <insertyourusernamehere> it will ask you for a password and a confirmation, make the username password the same as your linux login and password and you should be able to get in |
Re: Linux/Samba permission from Windows
Quote:
I think I need to take a step backwards first :dunce: When I type what you say (and remembering not to use the <> before and after my name), I get a bog standard help script. It suggest I login as root, but when I try to login as root at main screen it tells me a root admin can't. However, If I'm using a function that needs root functionality it prompts for password I enter and all is well. So how/where do I login as root or to get in the terminal window as root? I am just using my <name> not adding anykind of network // or \\ :confused: i.e. <me> not <me>@<w/s name> I'm sure DOS is easier than this! |
Re: Linux/Samba permission from Windows
you need to run su or sudo on command line to log into admin account to run certain commands.
|
Re: Linux/Samba permission from Windows
Quote:
Many thanks for all your help, most appreciated |
Re: Linux/Samba permission from Windows
i'm not a huge linux guru myself, took me ages to get things working through trial and error :D
here's a segment of my smb.conf that may help. Quote:
|
Re: Linux/Samba permission from Windows
Quote:
Yes, trial and error, though in my case most of it is the latter! |
Re: Linux/Samba permission from Windows
opps just noticed i bolded the wrong bit ment to do the `admin users ` line.
oh well :D glad you got it working. |
Re: Linux/Samba permission from Windows
Quote:
Now I have it working (of sorts) I even tested by batch file to copy over my files for backup purposes and it works :cool: Firewall: I'm told one is installed, is this correct? Anti-Virus software (don't worry, I had disconnected my broadband whilst 'playing')- AVG do Free linux, but they seem to be just for Mandrake, Red Hat etc. where & how do I get a freebie to install please? That's enough for tonight "Happy Easter" to one and all :) |
Re: Linux/Samba permission from Windows
iptables would be installed but it needs to be configured, you open ports in linux its not really done by allowing programs access like on windows.
i use guarddog is an easy to use program http://www.simonzone.com/software/guarddog/ re: anti-virus this link sums up it up really. http://ubuntuforums.org/showthread.php?t=53778 until a lot more people use linux its not worth the virus writers attention atm and the permission based system on linux would restrict what it could do. |
Re: Linux/Samba permission from Windows
Hi,
If you’re still interested in an anti-virus for linux there is one called ClamAV. More information is available on the web site here: http://www.clamav.net/ Since Unbuntu is a debian based distribution then its worth looking at the debian binary packages that have already been compiled. (http://www.clamav.net/binary.html#pagestart) Your best bet though to keep things easy, is to use the apt-get or aptitude package manager(s) to install it. (Unbuntu is based on Debian, which has one of the best package handling features around). For a quick guide Unbuntu wiki offers a great step by step guide. https://wiki.ubuntu.com/ClamAV?highlight=%28ClamAV%29 Just make sure you run the command in su / sudo mode. You could if you wanted also use the graphical one in gnome. :) Oh and just before you follow the wiki guide you might just want to run: Quote:
And Quote:
Above should of been done my Unbuntu automatically, but hey its all practise right? :D :angel: Hope this helps you out a little. - Also just to add, as said above linux doesn’t really require one due to how it operates. However you may want to make use of it if you are transferring from windows systems. (clamav can pick up windows viruses, and no they wont harm the linux system!) |
Re: Linux/Samba permission from Windows
I don't use a firewall for Ubuntu, but if I did, I'd go for Firestarter, available in the repositories.
Likewise, until there is an actual live, widespread Linux virus (as opposed to proof-of-concept ones in a lab), I don't bother running any anti-virus software. |
Re: Linux/Samba permission from Windows
deadite66, joker & Tristan - thanks for your helpful replies, much appreciated :)
The only thing not working now is network printing .... but I'll leave that for another day! Thanks again |
Re: Linux/Samba permission from Windows
<time moves on 4 months>
I haven't given up on Linux yet ...... Anyhow, install Ubuntu on freshly formatted HDD on old PC. Installed OK. Follow all the previous advice on this thread, typing Su then smbpasswd -a <insertyourusernamehere> etc, accepted OK. I gain access via Windows, but can only see Printers & faxes and some Linux system files, so deinstall SAMBA, reinstall, this time I only get to see Printers & faxes via Windows (no linux files). I even give SAMBA permission at Root level, reboot, no difference. By this time getting a little angry :mad: , in desperation reistall Ubuntu & SAMBA and get only to see printer & faxes via Windows network (at least network prining now works :cool: ). So what's changed, I assume we're now on to a later version of SAMBA maybe, should I be using some new command in terminal Window? I went to the smb.conf file as shown by deadite66, but somehow it now doesn't look like that in this thread. All I want, for now, is to be able to move files via network (cross-over cable) from Windows to Linux - then be able to at least 'read' from Linux via Windows - It worked before, what happened? I have Norton Internet Security on Windows, even disabled that just to see if that was limiting access somehow, but no difference, after giving SAMA permission all I can see via Windows is Linux printers & faxes. Any SAMBA/Ubuntu experts out there who helped me before can see what has changed, or I am blindly misssing something obvious, please? I openly admit to being a dummy on Linux, but as I followed previous instructions step by step, can't see why not getting same results. Hoping you can come to the rescue again, please? Cheers |
Re: Linux/Samba permission from Windows
hi
if you have your old smb.conf you should be able to use that, i moved from mandrake to kubuntu 5.10 and reused a lot of my config files so my example above should be usable make sure to allow netbios on any firewall you have on windows. |
| All times are GMT. The time now is 23:18. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum