Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   Linux/Samba permission from Windows (https://www.cableforum.uk/board/showthread.php?t=46055)

jingleman 14-04-2006 22:27

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

Graham M 14-04-2006 22:43

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

jingleman 15-04-2006 13:10

Re: Linux/Samba permission from Windows
 
Quote:

Originally Posted by Zeph
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

Zeph, thanks for the reply.

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!

deadite66 15-04-2006 18:20

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.

jingleman 15-04-2006 18:55

Re: Linux/Samba permission from Windows
 
Quote:

Originally Posted by deadite66
you need to run su or sudo on command line to log into admin account to run certain commands.

deadite66, you're a star, I can now see my home folder on Linux :)

Many thanks for all your help, most appreciated

deadite66 15-04-2006 19:11

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:

#======================= Global Settings =====================================
[global]
log file = /var/log/samba/log.%m
restrict anonymous = no
ldap ssl = No
guest ok = yes
domain master = no
map to guest = Bad User
printer admin = @adm
dns proxy = no
netbios name = TRANQUIL_PC
read only = no
server string = Samba Server %v
max protocol = NT
workgroup = MSHOME
server signing = Auto
preferred master = no
max log size = 50

[movies]
valid users = lee
admin users = lee
case sensitive = no
path = /home/sharedfiles/movies/
vfs objects = recycle
recycle:repository = .recycle
recycle:keeptree = Yes
recycle:touch = Yes
recycle:versions = Yes
recycle:maxsize = 0
recycle:exclude = *.tmp *.temp *.o *.obj ~$* *.~??
recycle:excludedir = /tmp /temp /cache
recycle:noversions = *.doc *.xls *.ppt
the bit in bold may be the important line to writing files.

jingleman 15-04-2006 19:41

Re: Linux/Samba permission from Windows
 
Quote:

Originally Posted by deadite66
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.


the bit in bold may be the important line to writing files.

Cheers - I have now made my 'home' folder shared and can write to it from Windows PC :cool:

Yes, trial and error, though in my case most of it is the latter!

deadite66 15-04-2006 21:45

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.

jingleman 15-04-2006 22:06

Re: Linux/Samba permission from Windows
 
Quote:

Originally Posted by deadite66
oh well :D
glad you got it working.

Yes, many thanks I've come on at a great pace today, thanks to your replies.

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 :)

deadite66 15-04-2006 22:28

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.

joker 15-04-2006 23:08

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:

apt-get update
- This will download the latest package list.

And

Quote:

apt-get upgrade
- This will upgrade any outdated software packages on your system.

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!)

Tristan 16-04-2006 15:24

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.

jingleman 16-04-2006 17:54

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

jingleman 25-08-2006 21:43

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

deadite66 25-08-2006 22:49

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.

popper 25-08-2006 23:27

Re: Linux/Samba permission from Windows
 
have you read this Configuring SAMBA
https://help.ubuntu.com/ubuntu/serve...ing-samba.html

jingleman 26-08-2006 19:37

Re: Linux/Samba permission from Windows
 
Thanks to popper and deadite66 for replies. However fate seems to have resolved the problem for me ...... the motherboard on my old PC has now died :mad:

I've had a few issues with the old machine, but am not prepared to spend anymore time or money on it now. Will salvage the good bits from it.

Thanks for replies, hopefully may be useful if anyone else goes down the SAMBA/Ubuntu route. I'll just stick to XP Pro on this machine.

Now, where's Mr Steptoe, I want him to come and collect this pile of rubbish ......


All times are GMT. The time now is 11:27.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum