is rather fascianting. Check the whole article if you want a lot of into.
It's totally fascinating how King's book (in which alcoholism is so important as a theme) went to war with Kubrick's vision.
I saw the "truer adaptation" of King's novel (with that guy from Wings and Rebecca de Mornay) and can say Kubrick did right by rewriting the book.
Kubrick took it much closer to the most hysterical Dickens.
King seems to have "got it" that Kubrick knew what the hell he was doing.
Even if it took him a few decades to "get it."
Motivation of Ghosts
In the novel, the motivation of the ghosts is to possess Jack Torrance to get him to kill Danny; if Danny dies in The Overlook, his shining ability will be absorbed along with all the other awful energies that have manifested there. In the novel, the hotel is itself a sentient entity and so the hotel itself will become far more powerful and able to extend its powers beyond the confines of its grounds. In the film, the motive of the ghosts is ambiguous but seems to be to reclaim Jack Torrance (even though Grady expresses an interest in Danny's shining ability), who is apparently a reincarnation of a previous caretaker of the hotel, as suggested by the photograph of Jack Torrance in the 1920s at the end of the film and Jack's repeated claims to have "deja vu". Thus, in the film, Jack has been the focus of the ghosts' attention all along rather than Danny. This plot difference re-contextualizes the line "You've always been the caretaker," which in the novel is a lie told by the ghosts of the hotel to bolster Jack's ego, but may in some sense be literally true in the film.