CentOS 5 Networking :: Samba "net Rpc Shutdown" Remote To Vista
Nov 4, 2009
This is most likely a Vista config thing, but basically I'm using "net rpc SHUTDOWN -f 192.168.xxx.xxx -U username%password" to remotely shutdown both XP and Vista machines.
The XP machines shutdown fine. They have the same local user account names and passwords as the Vista machines. The Vista machines repond with NT_STATUS_LOGON_FAILURE.
I've checked (way too many times) that my usernames and passwords are correct, Ive disabled the Windows Firewall in Vista, and I've been googling for two days and can't really remember all the other things I've tried.I'm sure it's probably some kind of security thing in Vista, but I barely ever use Vista and don't know where to go from here.
I have built a Centos 5.3 server for a friend of mine that is being used as a NAS server. The server has 4 1TB drives in a RAID 5 configuration and a dedicated non raid system drive for the OS. My friend isnt very Linux literate so I need this bow to be relatively simple. I have worked most of it out but have a question with regards to remote reboot.
I need to be able to shut this device down through the power switch without human intervention (at the moment when the power switch is pushed the server asks to confirm shutdown) the server wont have a Monitor connected so this isn't practical. Is it possible to use the power switch to do an clean, immediate shutdown?
The other option is shutdown through a web page is this something that has been done before? I know he can do it through terminal by issuing a shutdown now command but as I said this guy wants something simple. I don't really want to explain everytime he needs to shut the Server down how to do it if he can just do it via a website or even with the power button.
I can't be the first one with this problem. What am I missing?
I have setup Samba servers in the past, just none under SELinux. The last one I configured was a couple years ago, so I wouldn't doubt I'm a bit rusty.
---- Environment summary: Clean server install of CentOS 5.4 includes SELinux - lets call this 'server' - updated samba to 3.0.33-3.15.el5_4.1
Client1 - Windows XP sp4 - WINS configuration uses 'server' noted above Client2 - Windows Vista - WINS configuration uses 'server' noted above
---- What works / what doesn't ------ Clients can see the server (XP and vista) in network neighborhood. The following does not work from windows (xp or vista) net view net view \server net view \server-ip net view \servershare
This does work on the server smbclient -L \server smbclient -L \server --user validuser smbclient -L \client1 --user validuser
---- What I have configured and tried (config/output below) -------- firewall ports for samba are open SELinux enforcing or permissive file context is set on share samba booleans are set
***firewall -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p udp --dport 139 -j ACCEPT
***SELinux mode/booleans # sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: permissive Mode from config file: enforcing Policy version: 21 Policy from config file: targeted
# getsebool -a | grep smb allow_smbd_anon_write --> off smbd_disable_trans --> on
# getsebool -a | grep samba samba_domain_controller --> on samba_enable_home_dirs --> on samba_export_all_ro --> off samba_export_all_rw --> off samba_share_fusefs --> off samba_share_nfs --> off use_samba_home_dirs --> on virt_use_samba --> off
i am a new user to Ubuntu and Linux for that matter. I am using ubuntu 9.10. I want to remote from my Ubuntu machine into my Vista desktop (Vista Ultimate).i can do so with ease using the various Ubuntu application through vnc. However, whenever I try to do so through RDP I am unable to do so. When I try to remote into the Vista machine through RDP it will launch the Vista login screen where I enter my user name and password. It always comes back saying that the password is incorrect even though the login is the same that is used to login everyday. It doesn't seem to be a firewall problem because I disabled it and get the same results. I also get the same results when using either a wired connection or a wireless connection on the Ubuntu machine.My normal network consists of the Ubunu notebook, my Vista Ultimate Desktop (wired to the router) and my Vista Ultimate Tablet PC on a wireless connection.
I might mention that I can remote using RDP from my Ubuntu notebook into into the Vista Tablet PC with no problem. But not the so with the Desktop. Always fails telling me that I am using an incorrect password. I am the only user on either Vista machine and as far as I can tell everything is set the same on both Vista systems (securrity, remote, etc.) unless I am missing something, which I apparently am.Not sure if it makes any difference but the Tablet pc has always run Vista but the Desktop was orriginally an XP and for the life of me I can't remember if I did an upgrade to Vista Ultimate or a clean install since it has been a year or so.
I will be running a network of +- 35 Ubuntu pc's from next year on. I have already started setting up remote desktop viewing utilities, but I now need a way to remotely shut down all the pc's at the same time, with a simple command as Admin. Setting up scripts to execute at a certain time is not gonna help, as the online time wont be the same all the time. I want to avoid having to remotely shut down each and every pc, as this will take quite a lot of time.
I'm having trouble setting up samba to work with my vista machine. Whenever I try to mount certain shares I'm getting error 13- permission denied. Specifically, I'm trying to mount my entire C: with this command at the console:
The funny thing is that I CAN mount some other shares, but not all. My distro is slack-current. I've been following as many relevant threads on this issue for a while now and have tried as many of the suggestions as I could understand, but it's getting to the point that I've lost track of what I've tried and what I haven't. Things I have tried:
Checking permissions on the shares: seem to be ok enabling encrypted passwords: not sure if I did it right. editing the registry for LmCompatablity
I have installed CentOS 5.5 along with the Samba package. I have it configured (i believe), but when I try to access a share, it is not accepting my UN/PW. I have copied the smb.conf file from a working computer over to this one, but it is still not accepting my login. Anyone know of any other files I should check?
I have moved a working smb.conf file to this new box, and both computers have the same UN/PW's
I setup shares on a fresh install of Ubuntu 9.10 via the shared folders application from here: [URL]. The shares are visible on my vista laptop but when I go to open them I get an error "you might not have permission to use this network resource". I set the smbpswd to nothing via the method in the above article as well and my /etc/samba/smd.conf has the follow lines:
[300] path = /media/Secondary Storage available = yes browsable = yes public = yes writable = no
[500] path = /media/New Volume available = yes browsable = yes public = yes writable = no
I'm trying to set up a Samba printer in Debian linux. The printer is being shared by a computer running windows vista. Some of the information I've got in the process. Sharing seems to be working, the printer seems to be detected and authenticating (I've tried invalid values and the utility I'm using to set things up says it cannot verify when I use invalid values, but with things as they are it claims everything checks out).
When I go into CUPS it says it detects the printer and everything is working. However, printing a test page causes the job to be immediately complete and nothing happens. It seems that the job is getting lost somewhere in the process. Could it be a firewall issue? I feel like the right ports must be unblocked since I can query the computer and verify the printer, etc. I have a laptop with vista which I installed a printer on and was able to print to that computer just fine. So it doesn't seem to be a Vista thing.
Code: Domain=[OFFICECOMPUTER] OS=[Windows Vista (TM) Home Premium 6000] Server=[Windows Vista (TM) Home Premium 6.0] Sharename Type Comment --------- ---- ------- ADMIN$ Disk Remote Admin C$ Disk Default share D$ Disk Default share HP Deskjet D1500 series Printer HP Deskjet D1500 series IPC$ IPC Remote IPC print$ Disk Printer Drivers session request to 192.168.0.10 failed (Called name not present) session request to 192 failed (Called name not present) session request to *SMBSERVER failed (Called name not present) NetBIOS over TCP disabled -- no workgroup available
I'm having some problems with sharing my printer via SAMBA. Connected to my Ubuntu 9.10 Desktop is a HP office-jet D135 witch I shared via samba. I have no problems printing from my Ubuntu laptop. And in Vista I can see and access all the other shares, including the printer. But ones i try to access the printer I get a pop-up window telling me: "unable tot connect to printer error code 0x00000709 check if the name is correct or if the printer is connected to the network" ( but of course in Dutch). What is going wrong here?My /etc/samba/smb.conf
I have noticed that I am not the first one to have problems with samba and connecting to a Windows PC. I have read so many articles and I have tried a couple of things that seemed to make sense, but no luck.
I can connect from my Vista to my Ubuntu netbook remix, but not the other way around. I get the error message: "Unable to mount location", "failed to mount windows share" and I get "mount error 12 = Cannot allocate memory" in Smb4K.
There was a suggestion that "mount error 12 = Cannot allocate memory" indicated it was a problem originating in Vista, but the added registry values on my Vista PC that was suggested didn't change anything. I have also read and [URL] and implemented 3.1 and 3.2 but it made no difference either.
Samba doesn't seem to disconnect on shutdown except by timing out, causing a loooong Lucid shutdown. (I can disconnect manually before shutdown by unmounting the Samba shares, and shutdown is then very fast.) Apparently Network Manager is somehow involved. I've installed a NM shutdown Samba script which works for the first user account, but not for the second user account (which was created and then put into the admin group).
I need to access a windows share at my university's server. When I am at the university, I can access the share by nautilus (or dolphin) in a similar way to ftp:
smb://domain%5Cusername@server/share
The thing is that when I try the above anywhere else except the university, it does not connect. I guess it has something to do with the domain, but I am not sure.
I'm running 10.04 server on a Mac G5 with 2 network interfaces, one pointing to my network (192.168.0.x) and the other to a local partner network (192.9.100.x) with which we share a network volume to give/take PDF files.My client environment is MAC OS X (from 10.4 to 10.6) and until now only one client (with 2 nics) was connected to that volume: we don't have layer3 switches to do static routes over the two networks, so I decided to use my Ubuntu Server Mac to do this (it's also my new syslog server...).
Nics are configured correctly, and the local share (192.168.0.x) is well seen by everybody.But, when I mount the remote volume (192.9.100.x) to THAT shared folder, nobody is able to connect to the samba share (that now lists the remote volume directory...). The MAC OS X tells "unable to unmount the volume". IP forwarding is also activated on /etc/sysctl.confHere is a part of my smb.conf file
We have an existing Windows 2000 network that I am trying to add an Ubuntu 8.04 server to. I have put links into the windows domain DFS to the linux machine's samba shares.
The shares work fine for local users that are physically on the same network (192.168.0.X). Remote users from other offices or dialing in with a vpn client can not access the these particular folders off the DFS. However, they can map them directly from the ubuntu server.
I have a problem on my LAN, then: I have a laptop on which Windows Vista is installed, and every time I try to do ping to my server centos, my centos server does not respond to ping. The server is operating normally, because I found other PCs on my network that communicate normally with my centos server.
I have one desktop PC I'd like to use as a jukebox. It's installed in the basement as a black box, with only SSH access, and it has got a minimal CentOS 5.3 install with MPD and NCMPC. It's connected to the hi-fi in the basement, so I can stream music to it when I'm downstairs. Since I didn't want to use cables everywhere, I bought a PCI wireless card, with a RT2561 chip.
Until recently this card worked OK with Linux. Recent kernel version even have out-of-the-box support for it, except of course you still have to download the firmware from the Ralinktech website.
I gave the thing a static IP configuration by editing /etc/sysconfig/network-scripts/ifcfg-wlan0, interface went up fine, I can ping the machine and SSH into it OK. Now the only problem is, when I do a shutdown -h now, the machine "hangs" while trying to bring wlan0 down. (In case you wonder: I temporarily attached a monitor to it, since wanting to know what goes on while shutting down in an SSH session is a chicken-and-egg situation :)). I actually have to hard-reboot it (by pressing RESET).
i've been trying to connect to my stationary computer from my laptop. My stationary computer uses Windows Vista 32 and my laptop uses Ubuntu 10.10. I'm trying to connect to my vista computer without luck, i have installed RealVNC on my vista, opened port 5900, 5800 and 3389 on my router. My laptop is Wireless and my stationary is on cable. Tried using Terminal Server Client without luck, i get this message:
Code: Connected to RFB server,using protocol version 3.8 Performing standard VNC authentication Authentication Successful vncviewer:VNC server closed connection
I've tried adding my laptop static ip on RealVNC in the config. I have shut down windows firewall, I'm running no security, i have opened for Remote connection by right clicking My computer and in network connection. Im Running a Linksys WRT54GL with Firmware: DD-WRT v24-sp2 (10/10/09) std
I need to remotely Ubuntu 10.10 server. However I want to do it froma Windows XP VISTA or Windows 7 machine. Ideall I would like to login using http web browser. The primary reason is because I want to be able to update the server software remotely when required. Ofcourse it would be nice to see the GUI and be able.10 to perform all functions as if I was sitting at the computer. I heard of webmin.... or webadmin... However I have not find this software in the Ubuntu Software Centre and I would like it to be good for Ubuntu 10.10.
My cousin needs some help with his computer (I know a bit more about MS then Linux at this point). He has VISTA HOME EDITION, Which as far as the internet tells me ... cannot do RA without a third party software. But he says he found it and sent the invite to my email. I have already download rdesk (I think that's what I want) so I can initiate a RA from terminal with IP or server URL, But everytime I try to access his through IP it says:
Code: me@linux:$ rdesk ip.cous.comp.here !!--'DISPLAY FAILED TO LAUNCH' me@linux:$
I was going to also look at getting tightVNC, but am not 100% sure it does what I want... Other then this I have no idea what to do. I have never done remote with a Linux and a MS system ...
(By the way, I am running Dreamlinux which is Debian based. It is the latest -far as I know- which is 3.5 built on Lenny stable. My desktop session is Xfce, but I can enable KDE or GNOME for applications that may need it. My cousin and I are 100 miles apart at the moment so this seems to be our only option.
ow do you remotely shutdown an XP host from a linux machine? I know that you can use shutdown /s /f /m IP_GOES_HEREFrom windows, but how would you do that from linux? (wine does not port the shutdown command)
I have a PC running Opensuse 11.0 Linux. I currently login using ssh with putty. However this is a command line login. How to do a remote xserver login from windows to run a gnome or kde session. what software should I use?I have the root password for the Linux PC and admin privileges on vista.
I am trying to access files on a laptop (running Windows 7) from an Ubuntu desktop running 9.10. I can view the Windows 7 files just fine. Listing their permissions from an Ubuntu terminal shows them to be read/write by everyone. But, I am unable to update any of the files from Ubuntu.
I mount the files using the command: mount -t cifs //richard-pc/C -o username=***,password=***,dir_mode=0777,fi le_mod=0777 /mnt/windows7c
The permissions on the Windows 7 files on the laptop are set to Full Control by Everyone.
I have a server with Fedora 13 installed and vnc-ltsp-config set up for remote desktop access. Seems to be working fine for everything I need, and with KDM instead of GDM, I'm even able to log in as root to Gnome.Which leads me to the problem. Logging in as root and I get the shutdown menu options in the Gnome "start menu". Log in as anyone else, no shutdown options. Logging in to the console as any user and I get the shutdown options.I want to enable the shutdown options for all users remotely. How can I go about doing this?
And I know someone will say "that's a bad idea". Don't worry, this is a small server at my mom's house I set up for her to run some web proxy filtering with Dan's Guardian and Privoxy. Since I'm typically logging in remotely from home using VNC of some flavor, I'd rather be able to reboot or shutdown through the menu (just more "natural" to me). I know I can shut down through the command line, but that's just too much work.
I had CentOS 5.2 Upgraded to 5.3 -- when will I learn to test more. Anyway, same everything and samba won't stay up. I'm constantly doing service smb restart and then a few seconds later the shares are gone and I have to run smb restart again.
I am trying to mount a file server directory on a client machine. I tried using NFS, but could not mount the share on the client. Several respobses were given to a post on this problem. but I still was not able mount the NFS share. I decided to try instead to mount the directory as a Samba share because I can already access it using Samba from windows, or from KDE or Gnome using smb://fileserver as a desktop location icon URL. When I try to mount the Samba share I get error messages that nearly identical those that occurred with NFS. . Here are some of the setup parameters
CentOS 5.4 on client and server behind a D-Link router server IP: 192.168.0.44 (can ping it client) client IP: 192.168.0.101 (can ping from server)
[code]....
This is the only error message that these commands have produced in the messages log, secure log or smbd log for either machine. My immediate goal is to set up the simplest possible local mount that will allow Grsync to backup to the file server.